Function at 0x404b50
Capabilities:
Enumerate pe sections
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov dword [esp + 0x2c], 0x3fff
cmp eax, 0xffc3d44f
je 0x404b87
cmp eax, 0xffc3d44e
je 0x404b87
mov byte [esp + 0xd], 0
cmp eax, 0xffc3d44d
jne 0x404b8c
mov byte [esp + 0xd], 1
mov ecx, dword [0x4abbb0]
test ecx, ecx
jne 0x404ba3
lea edi, [esp + 0x38]
mov dword [esp + 0x14], edi
jmp 0x404c43
mov eax, dword [0x4abbb4]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x14], edi
mov dword [0x4abbb4], eax
cmp eax, dword [0x4a78f0]
jl 0x404bcb
mov dword [0x4abbb4], 0
mov al, byte [ebp + 0x18]
mov byte [edi], al
mov byte [edi + 5], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4adae4]
mov dword [0x4abbb8], eax
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
jns 0x404bf6
fadd dword [0x4a1cd8]
fdiv qword [0x4a1cd0]
mov dword [0x4adae4], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404c36
cmp esi, dword [0x4abbbc]
je 0x404c30
mov eax, dword [0x4ab2a0]
push esi
lea edx, [edi + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404c3d
mov byte [edi + 0xc], 0
jmp 0x404c3d
mov dword [edi + 0xc], 0x412f4e
mov dword [0x4abbbc], esi
mov al, byte [ebp + 0x18]
cmp al, 0xe7
jne 0x404c80
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
movzx eax, word [ecx + 4]
push 0x3fff
push edi
push ebx
push 0xe7
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
mov word [edi + 2], ax
mov byte [edi + 4], 0x55
call fcn.00406440
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cx, word [ebp + 0x1c]
add al, 0x64
mov word [edi + 2], cx
cmp al, 3
ja 0x404c95
mov dword [ebp + 0x1c], 0
mov edx, dword [0x4ab3d4]
cmp dword [ebp + 8], edx
jne 0x404cc5
mov bl, byte [ebp + 0x28]
and bl, 1
jne 0x404def
cmp byte [ebp + 0x20], bl
movzx ecx, byte [ebp + 0x18]
setne al
dec al
and al, 0x80
mov byte [ecx + 0x4ab2c0], al
jmp 0x404def
mov ebx, dword [ebp + 0x28]
shr ebx, 4
and bl, 1
test dword [ebp + 0x1c], 0x100
jne case.0x404d05.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404d05.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404d05.13
movzx edx, byte [eax + 0x406270]
jmp dword [edx*4 + 0x406240]
cmp byte [ebp + 0x20], 0
sete al
mov byte [0x4aa18c], al
jmp case.0x404d05.13
cmp byte [ebp + 0x20], 0
sete cl
mov byte [0x4aa18d], cl
jmp case.0x404d05.13
cmp byte [ebp + 0x20], 0
sete dl
mov byte [0x4aa18e], dl
jmp case.0x404d05.13
cmp byte [ebp + 0x20], 0
sete al
mov byte [0x4aa18f], al
jmp case.0x404d05.13
cmp byte [ebp + 0x20], 0
sete cl
mov byte [0x4aa190], cl
jmp case.0x404d05.13
cmp byte [ebp + 0x20], 0
sete dl
mov byte [0x4aa191], dl
jmp case.0x404d05.13
cmp byte [ebp + 0x20], 0
sete al
mov byte [0x4aa192], al
jmp case.0x404d05.13
cmp byte [ebp + 0x20], 0
sete cl
mov byte [0x4aa193], cl
jmp case.0x404d05.13
cmp byte [ebp + 0x20], 0
sete dl
mov byte [0x4aa194], dl
jmp case.0x404d05.13
cmp byte [ebp + 0x20], 0
sete al
mov byte [0x4aa195], al
jmp case.0x404d05.13
cmp byte [ebp + 0x20], 0
sete cl
mov byte [0x4aa196], cl
movzx esi, byte [ebp + 0x18]
mov eax, dword [0x4abbd8]
lea edx, [esi + esi*4]
cmp byte [eax + edx*4 + 8], 0
jne 0x404def
test byte [ebp + 0x28], 0x10
jne 0x404def
mov ecx, dword [ebp + 0x20]
mov al, byte [ebp + 0x18]
push ecx
call fcn.004077a0
add esp, 4
test al, al
je 0x404def
cmp byte [ebp + 0x20], 0
setne dl
dec dl
and dl, 0x80
mov byte [esi + 0x4ab2c0], dl
cmp byte [esp + 0xd], 0
je 0x404dfa
mov al, 0x69
jmp 0x404e04
neg bl
sbb bl, bl
and bl, 0x41
lea eax, [ebx + 0x20]
cmp byte [0x4ab3c0], 0
lea ecx, [edi + 4]
mov dword [esp + 0x30], ecx
mov byte [ecx], al
je 0x404e44
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404e21
cmp al, 0x5c
jne 0x404e44
cmp byte [ebp + 0x20], 0
jne 0x404e44
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push eax
push ecx
mov ebx, edi
jmp 0x40622b
cmp byte [0x4aa1ab], 0
je 0x404eef
cmp byte [ebp + 0x18], 0x1b
jne 0x404eef
cmp byte [ebp + 0x20], 0
jne 0x404eef
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404eef
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
jne 0x404eef
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040f4f0
mov dl, byte [0x4ab29d]
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
or dl, 0xa4
push 0
movzx eax, dl
push 0
push eax
push 1
call fcn.0040f4f0
mov ecx, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push 0
push ecx
push 0x1b
mov ebx, edi
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.00406310
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [0x4abbdc]
mov cl, byte [eax + edx*4 + 0x13]
lea eax, [eax + edx*4]
mov edx, dword [0x4ab3d0]
mov byte [esp + 0x28], cl
cmp dword [ebp + 8], edx
jne 0x404f1d
test cl, cl
je 0x404f1d
mov esi, eax
mov dword [esp + 0x18], eax
jmp 0x404f30
movzx eax, byte [ebp + 0x18]
lea ecx, [eax + eax*4]
mov eax, dword [0x4abbd8]
lea esi, [eax + ecx*4]
mov dword [esp + 0x18], esi
cmp byte [esp + 0xd], 0
je 0x404f8f
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x404f60
cmp byte [ebp + 0x20], 0
je 0x404f60
cmp dword [0x4aa1b0], esi
jne 0x404f60
mov byte [esi + 0xd], 0
mov byte [esi + 0x10], 0
mov dword [0x4aa1b0], 0
mov ecx, dword [ebp + 0x20]
push 0x3fff
push edi
push ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.00406440
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x20], 0
jne 0x404fa2
mov eax, 0x3fff
mov byte [esi + 0x11], 0
mov word [esi + 4], ax
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x4ab3d4]
jne 0x405053
mov al, byte [ebp + 0x18]
test al, al
jne 0x404fe2
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0x3fff
push edi
push ecx
mov ecx, dword [ebp + 0x14]
push 0
push edx
push eax
mov eax, dword [ebp + 0x1c]
push ebx
call fcn.00406440
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
je 0x404fea
cmp al, 2
jne 0x405053
cmp dword [0x4ab430], 0
jne 0x405015
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40504d
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad2b4]
jne 0x40504d
mov eax, dword [ebp + 0x20]
push 0x3fff
test al, al
sete cl
push edi
mov byte [esi + 0x10], 0
mov byte [esi + 0xd], cl
push eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push ebx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.00406440
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4ab3d0]
mov eax, dword [0x4aa1b0]
mov ecx, dword [0x4abbd8]
test eax, eax
je 0x405090
cmp eax, esi
je 0x405090
cmp byte [ebp + 0x20], 0
jne 0x405090
cmp ebx, edx
jne 0x40507a
xor eax, eax
cmp byte [esi + 8], al
sete al
jmp 0x405083
mov eax, dword [0x4aa1b0]
movzx eax, byte [eax + 8]
test eax, eax
je 0x405090
mov eax, dword [0x4aa1b0]
mov byte [eax + 0x12], 1
cmp byte [esi + 9], 0
jne 0x4050a8
cmp byte [esi + 0xa], 0
jne 0x4050a8
mov ecx, dword [ebp + 0x20]
push 0x3fff
push edi
push ecx
jmp 0x40502b
cmp byte [ebp + 0x20], 0
mov dword [esp + 0x10], 0x3fff
mov dword [esp + 0x20], 0
je 0x4050f0
mov al, byte [esi + 0xd]
mov cl, byte [esi + 0x10]
mov byte [esp + 0x1f], al
movzx eax, word [esi + 4]
mov byte [esp + 0xf], cl
mov ecx, 0x3fff
mov byte [esi + 0x10], 0
cmp ax, cx
je 0x4050e6
mov dword [esp + 0x10], eax
mov word [esi + 4], cx
mov ecx, dword [0x4abbd8]
cmp byte [ebp + 0x20], 0
sete al
mov byte [esi + 0xd], al
mov byte [esp + 0xc], 0
cmp ebx, edx
jne 0x405174
cmp byte [esi + 8], 0
je 0x405191
cmp byte [ecx + 0xcb5], 0
jne 0x40511f
cmp byte [ecx + 0xcc9], 0
jne 0x40511f
xor eax, eax
jmp 0x405124
mov eax, 1
cmp byte [ecx + 0xcdd], 0
mov byte [ecx + 0x161], al
jne 0x405140
cmp byte [ecx + 0xcf1], 0
jne 0x405140
xor eax, eax
jmp 0x405145
mov eax, 1
cmp byte [ecx + 0xc8d], 0
mov byte [ecx + 0x175], al
jne 0x405167
cmp byte [ecx + 0xca1], 0
jne 0x405167
xor eax, eax
mov byte [ecx + 0x14d], al
jmp 0x405191
mov eax, 1
mov byte [ecx + 0x14d], al
jmp 0x405191
test edx, edx
jne 0x405191
push 1
call fcn.00411a80
add esp, 4
mov byte [0x4ab29e], al
mov byte [0x4ab29d], al
mov byte [esp + 0xc], 1
mov eax, dword [esi]
test eax, eax
je 0x4051a1
cmp dword [eax], 7
mov byte [esp + 0xd], 1
je 0x4051a6
mov byte [esp + 0xd], 0
mov al, byte [esi + 9]
test al, al
je 0x40532c
cmp byte [ebp + 0x20], 0
jne 0x40532c
mov ecx, dword [0x4aa1b0]
test ecx, ecx
je 0x4051d3
cmp byte [esi + 0xa], 0
je 0x4051d3
cmp esi, ecx
jne 0x40532c
cmp al, 1
jne 0x4051fc
cmp byte [esp + 0x28], 0
movzx eax, word [ebp + 0x1c]
jne 0x4051e6
movzx eax, byte [ebp + 0x18]
mov ecx, dword [esp + 0x28]
push ecx
push eax
call fcn.00409e80
add esp, 8
test al, al
je 0x4051fc
mov bl, 1
jmp 0x40520f
xor bl, bl
cmp esi, dword [0x4aa1b0]
je 0x40520f
mov dword [0x4aa1b0], esi
mov byte [esi + 0x12], bl
cmp byte [esi + 0xa], 0
je 0x4052c2
cmp byte [esp + 0xc], 0
jne 0x40522f
push 1
mov byte [esp + 0x10], 1
call fcn.00411a80
add esp, 4
mov al, byte [esi + 8]
mov cl, byte [0x4ab29e]
test al, al
je 0x405240
not al
and cl, al
test cl, cl
jne 0x40524e
test bl, bl
jne 0x40524e
test byte [esi + 0xc], 1
je 0x4052c2
mov edx, dword [0x4ab3d0]
cmp dword [ebp + 8], edx
jne 0x405278
cmp byte [esp + 0x28], 0
je 0x405278
movzx eax, word [ebp + 0x1c]
mov edx, dword [0x4abbd0]
movzx ecx, cl
shl ecx, 9
add ecx, eax
movzx ecx, word [edx + ecx*2]
jmp 0x40528e
mov edx, dword [0x4abbcc]
movzx eax, cl
movzx ecx, byte [ebp + 0x18]
shl eax, 8
add eax, ecx
movzx ecx, word [edx + eax*2]
mov dword [esp + 0x10], ecx
test ecx, 0x4000
je 0x4052a0
mov word [esi + 4], cx
jmp 0x4052d0
mov edx, dword [0x4a8a8c]
mov eax, ecx
and eax, 0x3fff
cmp ax, word [edx]
jae 0x4052c6
mov edx, dword [0x4abbd4]
mov ax, word [edx + eax*2]
mov word [esi + 4], ax
jmp 0x4052c6
mov ecx, dword [esp + 0x10]
mov edx, 0x3fff
cmp cx, dx
jne 0x40532c
test bl, bl
je 0x4052df
mov eax, dword [esp + 0x30]
or byte [esi + 0xc], 8
mov byte [eax], 0x23
cmp byte [esi + 8], 0
jne 0x40530f
test byte [esi + 0xc], 1
jne 0x40530f
cmp byte [esp + 0xd], 0
jne 0x40530f
test bl, bl
jne 0x40530f
push 0
push SysReAllocString
push 0x3fff
mov byte [esi + 0x11], 1
push 0
mov ebx, edi
jmp 0x406223
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0x3fff
push edi
push 0
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
jmp 0x405038
cmp byte [esi + 0xa], 0
mov byte [esp + 0xe], 0
je 0x4053a5
cmp byte [ebp + 0x20], 0
je 0x4053a5
cmp dword [0x4aa1b0], esi
jne 0x405356
cmp byte [esp + 0xf], 0
je 0x4053a5
mov dword [0x4aa1b0], 0
cmp byte [esi + 0xb], 0
jne 0x4053a0
mov al, byte [esi + 0xc]
test al, 8
je 0x40536c
xor cl, cl
and al, 0xf7
mov byte [esi + 0xc], al
jmp 0x40536e
mov cl, 1
cmp byte [esp + 0xf], 0
je 0x404f60
test cl, cl
je 0x404f60
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edx
push eax
mov ebx, edi
jmp 0x40622b
mov byte [esp + 0xe], 1
cmp byte [esi + 9], 0
je 0x405559
cmp byte [ebp + 0x20], 0
je 0x405559
cmp dword [0x4aa1b0], esi
jne 0x4053cb
mov dword [0x4aa1b0], 0
cmp byte [esi + 0xe], 0
je 0x4053ec
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xe], 0
call fcn.0040f4f0
add esp, 0x18
cmp byte [esi + 0xf], 0
mov ebx, dword [0x4abbd8]
je 0x405419
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xf], 0
call fcn.0040f4f0
mov ebx, dword [0x4abbd8]
add esp, 0x18
mov edx, dword [esp + 0x10]
mov eax, 0x3fff
cmp dx, ax
jne 0x405438
mov al, byte [esi + 0xc]
test al, 8
je 0x405438
and al, 0xf7
mov byte [esi + 0xc], al
jmp 0x404f60
mov cl, byte [esp + 0xd]
test cl, cl
je 0x4054d1
mov al, byte [esi + 0x12]
cmp al, 2
jne 0x40548c
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040f4f0
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040f4f0
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push eax
push ebx
push esi
jmp 0x404ed8
cmp al, 1
je 0x404f60
cmp byte [esi + 0xa], 0
jne 0x405547
cmp byte [esi + 8], 0
jne 0x405528
test byte [esi + 0xc], 1
jne 0x405528
test cl, cl
jne 0x405528
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push edx
push eax
push ecx
mov ebx, edi
jmp 0x40622b
cmp byte [esi + 0x12], 0
je 0x405494
mov eax, 0x3fff
cmp dx, ax
jne 0x405494
cmp byte [esi + 8], 0
jne 0x404f60
test byte [esi + 0xc], 1
mov ecx, dword [ebp + 0x18]
je 0x40550c
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x20]
push edi
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
jmp 0x404f7a
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push edx
push eax
push ecx
mov ebx, edi
jmp 0x40622b
push 0x3fff
push edi
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
jmp 0x404f7a
cmp byte [esp + 0x1f], 0
jne 0x405563
cmp byte [esi + 0xb], 0
jne 0x405563
jmp 0x404f60
mov edx, dword [esp + 0x10]
mov ebx, dword [0x4abbd8]
cmp byte [esp + 0xc], 0
jne 0x405588
mov eax, 0x3fff
cmp dx, ax
jne 0x405588
push 1
call fcn.00411a80
mov ebx, dword [0x4abbd8]
mov edx, dword [esp + 0x14]
add esp, 4
cmp dword [0x4aa1b0], 0
mov byte [esp + 0xc], 0
je 0x40593c
cmp byte [ebp + 0x20], 0
je 0x4055aa
cmp byte [esi + 0xb], 0
je 0x40593c
mov ecx, 0x3fff
cmp dx, cx
jne 0x405bad
mov eax, dword [esp + 0x18]
movzx esi, word [eax + 6]
xor edx, edx
cmp si, cx
je 0x4056f6
jmp 0x4055d0
movzx eax, si
mov eax, dword [eax*4 + 0x4abbe8]
mov cl, byte [eax + 0x11]
test cl, cl
je 0x4055ec
movzx ecx, cl
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*4]
jmp 0x4055fc
movzx ecx, word [eax + 0xa]
mov edi, dword [0x4abbdc]
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*4]
cmp byte [ecx + 0xd], 0
je 0x40562c
cmp byte [eax + 0x16], 0
je 0x405620
cmp byte [ebp + 0x20], 0
jne 0x40563c
mov cx, word [eax + 4]
mov esi, dword [esp + 0x18]
mov word [esi + 4], cx
test edx, edx
jne 0x405646
jmp 0x40562c
cmp byte [ebp + 0x20], 0
jne 0x40562c
test edx, edx
jne 0x40562c
mov edx, eax
movzx esi, word [eax + 0xc]
mov eax, 0x3fff
cmp si, ax
jne 0x4055d0
jmp 0x40563e
mov edx, eax
test edx, edx
je 0x4056f6
movzx eax, byte [edx + 0x11]
cmp eax, 0x12
ja case.0x40565a.1
movzx ecx, byte [eax + 0x4062e8]
jmp dword [ecx*4 + 0x4062d4]
xor eax, eax
cmp byte [ebx + 0xca1], al
setne al
lea eax, [eax + eax*4 + 0x320]
lea ecx, [ebx + eax*4]
mov dword [0x4aa1b0], ecx
jmp 0x4056d5
xor eax, eax
cmp byte [ebx + 0xcc9], al
setne al
lea eax, [eax + eax*4 + 0x32a]
lea ecx, [ebx + eax*4]
mov dword [0x4aa1b0], ecx
jmp 0x4056d5
xor eax, eax
cmp byte [ebx + 0xcf1], al
setne al
lea eax, [eax + eax*4 + 0x334]
lea ecx, [ebx + eax*4]
mov dword [0x4aa1b0], ecx
jmp 0x4056d5
movzx eax, word [edx + 0xa]
mov ecx, dword [0x4abbdc]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x4056d0
lea ecx, [eax + eax*4]
lea eax, [ebx + ecx*4]
mov dword [0x4aa1b0], eax
movzx eax, word [edx + 6]
test ax, ax
je 0x405769
mov ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [0x4aa1b0]
movzx esi, word [esp + 0x10]
mov byte [eax + 0x12], 2
mov ecx, 0x3ffe
cmp si, cx
je 0x40570e
mov edx, 0x3ffd
cmp si, dx
jne 0x405938
cmp byte [ebp + 0x20], 0
jne 0x40571c
mov eax, dword [esp + 0x18]
mov byte [eax + 0x10], 1
test byte [0x4ab29d], 0xc
jne 0x40573c
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f4f0
add esp, 0x18
mov ebx, dword [ebp + 0x18]
cmp bl, 0xa2
je 0x405749
cmp bl, 0xa3
jne 0x4057b0
cmp byte [ebp + 0x20], 0
jne 0x4057b0
mov edi, dword [ebp + 0x1c]
push 0xffc3d44d
push 0
push 0
push edi
push ebx
push 1
call fcn.0040f4f0
add esp, 0x18
jmp 0x4057b3
mov ebx, dword [ebp + 0x20]
movzx edx, word [edx + 4]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [ebp + 0x24]
lea eax, [esp + 0x10]
push ebx
push eax
add ecx, 0xc
lea eax, [esp + 0x14]
mov dword [esp + 0x18], edx
call fcn.0040a0b0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4056e8
mov ecx, dword [esp + 0x14]
push 0x3fff
push ecx
push ebx
jmp 0x404f6a
mov edi, dword [ebp + 0x1c]
mov ecx, dword [0x4aa1b0]
mov edx, 0x3ffd
mov byte [ecx + 0xe], 1
cmp si, dx
jne 0x4057f2
test byte [0x4ab29d], 0x30
jne 0x4057e7
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f4f0
add esp, 0x18
mov eax, dword [0x4aa1b0]
mov byte [eax + 0xf], 1
jmp 0x405867
mov ecx, 0x3ffe
cmp si, cx
jne 0x405867
cmp bl, 0xa0
je 0x405806
cmp bl, 0xa1
jne 0x405821
cmp byte [ebp + 0x20], 0
jne 0x405821
push 0xffc3d44d
push 0
push 0
push edi
push ebx
push 1
call fcn.0040f4f0
add esp, 0x18
test byte [0x4ab29d], 0x10
je 0x405844
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040f4f0
add esp, 0x18
test byte [0x4ab29d], 0x20
je 0x405867
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040f4f0
add esp, 0x18
test byte [0x4ab29d], 1
je 0x40588a
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040f4f0
add esp, 0x18
test byte [0x4ab29d], 2
je 0x4058ad
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040f4f0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f4f0
mov edx, 0x3ffd
add esp, 0x18
cmp si, dx
jne 0x405909
mov eax, dword [0x4aa1b0]
cmp byte [eax + 0xf], 0
je 0x405909
cmp bl, 0x60
jb 0x4058e3
cmp bl, 0x69
jbe 0x4058e8
cmp bl, 0x6e
jne 0x405909
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f4f0
mov ecx, dword [0x4aa1b0]
add esp, 0x18
mov byte [ecx + 0xf], 0
cmp byte [ebp + 0x20], 0
mov edx, dword [esp + 0x30]
mov byte [edx], 0x68
jne 0x40591e
mov eax, dword [esp + 0x18]
mov byte [eax + 0x11], 1
mov ecx, dword [ebp + 0x20]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edi
jmp 0x406227
mov edx, dword [esp + 0x10]
mov eax, 0x3fff
cmp dx, ax
jne 0x405bad
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + 8]
mov al, byte [0x4ab29e]
test cl, cl
je 0x40595e
not cl
and al, cl
mov esi, dword [ebp + 8]
cmp esi, dword [0x4ab3d0]
jne 0x40598b
cmp byte [esp + 0x28], 0
je 0x40598b
movzx ecx, word [ebp + 0x1c]
movzx edx, al
shl edx, 9
add edx, ecx
mov ecx, dword [0x4abbd0]
movzx ecx, word [ecx + edx*2]
mov dl, byte [ebp + 0x18]
jmp 0x4059a3
mov dl, byte [ebp + 0x18]
movzx ecx, al
movzx edi, dl
shl ecx, 8
add ecx, edi
mov edi, dword [0x4abbcc]
movzx ecx, word [edi + ecx*2]
mov edi, 0x3fff
mov dword [esp + 0x10], ecx
cmp cx, di
jne 0x405a1d
cmp byte [0x4aa1ab], 0
je 0x405a1d
cmp dl, 9
je 0x405a1d
and al, 0xf3
cmp esi, dword [0x4ab3d0]
jne 0x4059e7
cmp byte [esp + 0x28], 0
je 0x4059e7
movzx edx, al
movzx eax, word [ebp + 0x1c]
shl edx, 9
add edx, eax
mov eax, dword [0x4abbd0]
movzx ecx, word [eax + edx*2]
jmp 0x4059fb
movzx ecx, al
mov eax, dword [0x4abbcc]
movzx edx, dl
shl ecx, 8
add ecx, edx
movzx ecx, word [eax + ecx*2]
mov eax, ecx
and eax, 0x3fff
mov edx, 0x3ff9
mov dword [esp + 0x10], ecx
cmp ax, dx
jbe 0x405a17
mov edx, edi
cmp ax, dx
jb 0x405a1d
mov ecx, edi
mov dword [esp + 0x10], ecx
test ecx, 0x4000
je 0x405a5d
cmp byte [ebp + 0x20], 0
jne 0x405af9
mov eax, dword [esp + 0x18]
mov word [eax + 4], cx
mov eax, dword [esp + 0x18]
add eax, 4
mov ecx, 0x3fff
cmp word [eax], cx
jne 0x405b5d
mov edx, dword [esp + 0x14]
push 0x3fff
push edx
push 0
jmp 0x405532
mov edx, edi
cmp cx, dx
je 0x405b07
mov edx, dword [0x4a8a8c]
mov eax, ecx
and eax, 0x3fff
cmp byte [ebp + 0x20], 0
je 0x405adc
cmp ax, word [edx]
jae 0x405ad3
mov edx, dword [0x4abbd4]
mov ebx, eax
add ebx, ebx
mov eax, edi
cmp word [ebx + edx], ax
je 0x405ad3
cmp byte [esp + 0xe], 0
jne 0x405ac4
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [ebp + 0x24]
push eax
lea edx, [esp + 0x14]
add ecx, 0xc
push edx
lea eax, [esp + 0x14]
call fcn.0040a0b0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x405af5
mov eax, dword [0x4abbd4]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x10], ecx
jmp 0x405af9
cmp byte [esp + 0xe], 0
jne 0x405b07
jmp 0x405af9
cmp ax, word [edx]
jae 0x405af9
mov edx, dword [0x4abbd4]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x18]
mov word [edx + 4], ax
jmp 0x405af9
mov ecx, dword [esp + 0x10]
mov eax, 0x3fff
cmp cx, ax
jne 0x405bad
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x405a37
mov eax, dword [esp + 0x18]
cmp byte [eax + 8], 0
jne 0x405b4d
test byte [eax + 0xc], 1
jne 0x405b4d
cmp byte [eax + 9], 0
je 0x405b4d
cmp byte [esp + 0xd], 0
jne 0x405b4d
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edx
push eax
jmp 0x40622b
mov edx, dword [esp + 0x14]
push 0x3fff
push edx
push ecx
jmp 0x405532
mov ecx, dword [esp + 0x18]
push 1
push eax
add ecx, 0xc
xor esi, esi
lea eax, [esp + 0x14]
xor edi, edi
call fcn.0040a0b0
add esp, 8
cmp byte [esp + 0xc], 0
je 0x405b8e
mov ecx, dword [esp + 0x14]
push 0x3fff
push ecx
push edi
jmp 0x404f6a
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push 0x3fff
push 0
push eax
push ecx
jmp 0x40622b
mov ebx, dword [esp + 0x18]
mov al, byte [ebx + 0xc]
add ebx, 0xc
mov dword [esp + 0x34], ebx
test al, 8
je 0x405bce
cmp byte [ebp + 0x20], 0
je 0x405bce
and al, 0xf7
mov byte [esp + 0xc], 1
mov byte [ebx], al
mov edx, dword [esp + 0x10]
mov eax, dword [0x4a8a8c]
and edx, 0x3fff
cmp dx, word [eax]
jae 0x405cdb
cmp dword [esp + 0x20], 0
jne 0x405cdb
mov ecx, dword [ebp + 0x20]
mov esi, dword [esp + 0x30]
mov edi, dword [ebp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov ecx, ebx
call fcn.0040a0b0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x405cdb
cmp byte [ebp + 0x20], 0
mov eax, dword [esp + 0x18]
je 0x405c6c
cmp byte [eax + 0x11], 0
mov eax, dword [ebp + 0x18]
je 0x405c4c
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edx
push eax
jmp 0x40622b
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x20]
push 0x3fff
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
jmp 0x404f7a
add eax, 4
mov ecx, 0x3fff
cmp word [eax], cx
je 0x405a4c
push 1
push eax
xor esi, esi
lea eax, [esp + 0x14]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x14], 0
call fcn.0040a0b0
mov edx, dword [ebp + 0x18]
add esp, 8
cmp byte [esp + 0xc], 0
je 0x405cb1
mov ecx, dword [esp + 0x14]
push 0x3fff
push ecx
push edi
jmp 0x404f6d
mov eax, dword [esp + 0x34]
and byte [eax], 0xf7
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push 0x3fff
push 0
mov byte [eax + 0x11], 1
push ecx
jmp 0x40622a
mov esi, dword [esp + 0x10]
mov dl, byte [0x4ab29d]
and esi, 0x3fff
test dl, 0xcc
je 0x405d9e
cmp byte [esp + 0xc], 0
jne 0x405d9e
cmp byte [0x4aa1ae], 0
jne 0x405d17
mov eax, dword [ebp + 8]
cmp eax, dword [0x4ab3d4]
jne 0x405d9e
mov bl, byte [0x4ab29f]
test dl, 0xc0
je 0x405d49
test bl, 0xc0
jne 0x405d40
push 0xc0
mov eax, esi
call fcn.0040a300
mov dl, byte [0x4ab29d]
add esp, 4
test al, al
je 0x405d49
mov byte [0x4aa1af], 1
jmp 0x405d9e
cmp byte [0x4aa1af], 0
jne 0x405d9e
test dl, 0xc
je 0x405d9e
test dl, 3
jne 0x405d9e
test bl, 0xc
jne 0x405d77
push 0xc
mov eax, esi
call fcn.0040a300
mov dl, byte [0x4ab29d]
add esp, 4
test al, al
je 0x405d9e
cmp dword [0x4ab3d0], 0
je 0x405d89
mov byte [0x4aa1af], 1
jmp 0x405d9e
push 2
mov eax, 0xffc3d44d
call fcn.0040fbc0
mov dl, byte [0x4ab29d]
add esp, 4
mov eax, esi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x405daf
jmp dword [ecx*4 + 0x4062fc]
cmp byte [0x4aa1ab], 0
jne case.0x405daf.16379
mov ecx, dword [esp + 0x14]
push 0x3fff
push ecx
jmp 0x40552e
xor al, al
mov byte [esp + 0xe], al
test dl, 4
je 0x405ddd
mov al, 0xa4
jmp 0x405de4
test dl, 8
je 0x405de8
mov al, 0xa5
mov byte [esp + 0xe], al
cmp byte [0x4aa1ab], 0
je 0x405e5e
mov ecx, 0x3ffb
cmp si, cx
je case.0x405daf.16381
test al, al
movzx eax, al
jne 0x405e0b
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f4f0
mov edx, dword [esp + 0x30]
add esp, 0x18
cmp byte [edx + 8], 0
je 0x405e52
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x405e52
cmp al, 0x5c
je 0x405e52
cmp byte [ebp + 0x20], 0
jne 0x405e52
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f4f0
add esp, 0x18
mov byte [0x4aa1ab], 0
jmp 0x4060b3
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x405e70
mov byte [esp + 0x27], 0
cmp cl, 0xa5
jne 0x405e75
mov byte [esp + 0x27], 1
cmp cl, 0xa0
je 0x405e83
cmp cl, 0xa1
je 0x405e83
xor bl, bl
jmp 0x405e85
mov bl, 1
mov byte [esp + 0x1f], bl
cmp cl, 0xa2
je 0x405e98
mov byte [esp + 0xf], 0
cmp cl, 0xa3
jne 0x405e9d
mov byte [esp + 0xf], 1
xor al, al
mov byte [esp + 0x20], al
test dl, 0x10
je 0x405eb0
mov al, 0xa0
mov byte [esp + 0x20], al
jmp 0x405ed3
test dl, 0x20
je 0x405ebd
mov al, 0xa1
mov byte [esp + 0x20], al
jmp 0x405ed3
cmp byte [ebp + 0x20], 0
jne 0x405ecd
test bl, bl
je 0x405ecd
mov al, cl
mov byte [esp + 0x20], al
mov dl, byte [0x4ab29d]
mov byte [esp + 0x28], 0
test dl, 1
je 0x405ee4
mov byte [esp + 0x28], 0xa2
jmp 0x405f01
test dl, 2
je 0x405ef0
mov byte [esp + 0x28], 0xa3
jmp 0x405f01
cmp byte [ebp + 0x20], 0
jne 0x405f01
cmp byte [esp + 0xf], 0
je 0x405f01
mov byte [esp + 0x28], cl
mov esi, dword [esp + 0x20]
xor bl, bl
test al, al
je 0x405f26
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040f4f0
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x28], 0
je 0x405f4a
mov eax, dword [esp + 0x28]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f4f0
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0x27], 0
je 0x405f59
cmp byte [ebp + 0x20], 0
jne 0x405f61
jmp 0x405f5d
mov cl, byte [esp + 0xe]
test cl, cl
jne 0x405f78
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f4f0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f4f0
add esp, 0x18
test bl, bl
je 0x405fb0
cmp byte [esp + 0x1f], 0
jne 0x405fb0
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040f4f0
add esp, 0x18
mov byte [0x4aa1ab], 1
jmp 0x4060b3
cmp byte [0x4aa1ab], 0
je 0x405dbf
cmp byte [ebp + 0x20], 0
mov al, byte [ebp + 0x18]
jne 0x406004
cmp al, 0xa2
je 0x405fe2
cmp al, 0xa3
je 0x405fe2
cmp al, 0xa0
je 0x405fe2
cmp al, 0xa1
jne 0x406004
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 1
call fcn.0040f4f0
mov dl, byte [0x4ab29d]
mov al, byte [ebp + 0x18]
add esp, 0x18
test dl, 0xc
je 0x406017
cmp byte [ebp + 0x20], 0
je 0x40602e
cmp al, 0xa4
je 0x406017
cmp al, 0xa5
jne 0x40602e
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f4f0
add esp, 0x18
mov edx, 0x3ffd
xor bl, bl
cmp si, dx
jne 0x40605c
test byte [0x4ab29d], 0x30
jne 0x40605c
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f4f0
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f4f0
add esp, 0x18
test bl, bl
je 0x4060b3
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f4f0
add esp, 0x18
jmp 0x4060b3
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
test eax, eax
je 0x4060b3
cmp byte [eax], 5
jb 0x4060b3
mov ecx, dword [esp + 0x20]
movzx edx, word [ecx + 0x14]
shl edx, 0x10
or dword [esp + 0x2c], edx
cmp byte [esp + 0xd], 0
mov eax, dword [esp + 0x30]
mov ebx, dword [ebp + 0x20]
mov esi, dword [esp + 0x18]
mov byte [eax], 0x68
je 0x40611a
test bl, bl
je 0x4061af
cmp byte [esi + 9], 0
je 0x40611a
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push esi
push edi
push 1
call fcn.0040f4f0
push 0xffc3d44d
push 0
push 0
push esi
push edi
push 2
call fcn.0040f4f0
mov ecx, dword [esp + 0x5c]
push 0
push SysReAllocString
push ecx
mov edx, ebx
mov ebx, dword [esp + 0x50]
push edx
push esi
push edi
jmp 0x404eda
test bl, bl
je 0x4061af
cmp byte [esi + 8], 0
je 0x40615f
cmp byte [esi + 0x11], 0
je 0x40614f
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push eax
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
jmp 0x40622b
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebx
jmp 0x405532
cmp byte [esp + 0xc], 0
je 0x406207
mov eax, dword [ebp + 8]
cmp eax, dword [0x4ab3d4]
jne 0x406192
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x10]
push ebx
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
jmp 0x404f7a
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
jmp 0x404f7a
mov eax, dword [0x4aa1b0]
mov byte [esi + 0x10], 1
test eax, eax
je 0x4061c6
cmp byte [eax + 8], 0
je 0x4061c6
mov byte [eax + 0x12], 2
cmp byte [esp + 0xc], 0
je 0x4061e4
mov eax, dword [esp + 0x34]
or byte [eax], 8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push ebx
jmp 0x404f6a
mov eax, dword [ebp + 0x18]
cmp al, 0xa4
je 0x4061ef
cmp al, 0xa5
jne 0x406207
mov ecx, dword [ebp + 0x1c]
push 0xffc3d450
push 0
push 0
push ecx
push eax
push 1
call fcn.0040f4f0
add esp, 0x18
test bl, bl
jne 0x40620f
mov byte [esi + 0x11], 1
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x20]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push edx
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.00406310
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret