Function at 0x499040
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1404
call fcn.00571390
mov eax, dword [0x5a9270]
test eax, eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], esi
jne 0x49a176
mov eax, dword [0x59bb4c]
test eax, eax
mov edi, 1
mov dword [0x5a9270], edi
jne 0x499090
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x49a16c
push 0
lea edx, [esp + 0x44]
mov ecx, esi
mov dword [0x5a90d4], 0
call fcn.005448e0
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x49a16c
mov eax, dword [esi + 0x864]
test eax, eax
je 0x49a16c
mov eax, dword [esi + 0x6cc]
test eax, eax
je 0x49a16c
mov ecx, dword [esi + 0xbbc]
mov dword [esp + 0x24], ecx
call fcn.004e2760
test eax, eax
je 0x49a16c
mov eax, dword [esi + 0x758]
cmp eax, edi
mov ecx, dword [esi + 0x9ec]
mov dword [esp + 0x10], ecx
je 0x499109
cmp eax, 2
jne 0x499111
cmp dword [0x5aca44], edi
jne 0x499111
lea eax, [ecx + ecx - 1]
mov dword [esp + 0x10], eax
movzx ecx, bx
push edi
mov dword [esp + 0x3c], ecx
shr ebx, 0x10
mov dword [esp + 0x40], ebx
mov eax, dword [esi + 0x864]
mov ecx, dword [esi]
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [esp + 0x38], 2
jl 0x49a16c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
jge 0x49a16c
xor edi, edi
cmp eax, edi
jl 0x49918b
mov eax, dword [esi + 0x6fc]
mov edx, dword [esi + 0x6cc]
sub eax, dword [esi + 0x700]
mov ebx, dword [edx + 0x44]
cmp eax, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ebx
jle 0x499187
cmp ebx, edx
je 0x499183
mov ebx, dword [ebx + 0x44]
dec eax
cmp eax, edi
jg 0x499177
mov dword [esp + 0x18], ebx
cmp ebx, edi
jne 0x49919c
mov dword [0x5a9270], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov edi, dword [ebx + 8]
sub ecx, edx
dec ecx
cmp ebx, eax
mov dword [esp + 0x30], ecx
je 0x49924f
mov ebx, dword [ebx + 0x44]
mov eax, dword [ebx + 8]
sub ecx, edx
cmp edi, eax
je 0x49920b
mov edi, eax
mov eax, dword [esi + 0x758]
cmp eax, 3
je 0x4991dd
cmp eax, 2
jne 0x499203
cmp dword [0x5aca44], 2
jne 0x499203
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 0x9ec]
mov eax, 0x55555555
imul esi
sub edx, esi
mov esi, dword [esp + 0x20]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
add ecx, edx
mov edx, dword [esp + 0x10]
mov eax, edx
neg eax
cmp ecx, eax
jl 0x499213
cmp ebx, dword [esp + 0x28]
jne 0x4991b6
jmp 0x49924b
mov eax, dword [esi + 0x758]
add ecx, edx
cmp eax, 3
mov dword [esp + 0x18], ebx
je 0x499232
cmp eax, 2
jne 0x499248
cmp dword [0x5aca44], 2
jne 0x499248
mov edx, dword [esi + 0x9ec]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
add ecx, edx
mov ebx, dword [ebx + 0x40]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x49a16c
mov esi, dword [ebx + 8]
mov edi, dword [esp + 0x10]
mov edi, edi
mov eax, dword [esp + 0x3c]
cmp eax, ecx
jl 0x49926f
lea edx, [ecx + edi]
cmp eax, edx
jl 0x4992ce
mov ebx, dword [ebx + 0x40]
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x49a157
mov eax, ebx
mov eax, dword [eax + 8]
add ecx, edi
cmp esi, eax
je 0x4992be
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [edx + 0x758]
cmp eax, 3
je 0x4992a8
cmp eax, 2
jne 0x4992be
cmp dword [0x5aca44], 2
jne 0x4992be
mov edx, dword [edx + 0x9ec]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
add ecx, edx
cmp ecx, dword [esp + 0x30]
jg 0x49a157
mov ebx, dword [esp + 0x18]
jmp 0x499260
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00498ac0
test eax, eax
mov dword [esp + 0x14], eax
jl 0x49a157
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + eax]
cmp al, 0x20
je 0x49a157
cmp al, 9
je 0x49a157
mov ecx, edx
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x6cc]
cmp ecx, eax
mov esi, ecx
mov dword [esp + 0x1c], esi
je 0x499335
lea ecx, [ecx]
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 8]
cmp edx, dword [esi + 8]
jne 0x499331
mov esi, ecx
cmp esi, eax
jne 0x499320
mov dword [esp + 0x1c], esi
test esi, esi
je 0x49a157
test eax, eax
mov edx, 1
mov dword [esp + 0x30], edx
je 0x499363
lea ebx, [ebx]
cmp eax, esi
je 0x49936b
mov ecx, dword [eax + 8]
cmp dword [eax + 8], ecx
jne 0x499380
mov eax, dword [eax + 0x40]
test eax, eax
jne 0x499357
cmp eax, esi
je 0x49936b
mov dword [esp + 0x30], edx
mov edx, 0x3e7
lea ecx, [esp + 0x820]
call fcn.0041ef30
mov ebx, esi
jmp 0x499390
inc dword [esp + 0x30]
jmp 0x499350
mov esi, dword [esp + 0x1c]
lea ebx, [ebx]
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 8]
jne 0x499437
mov eax, dword [ebx + 0x10]
test eax, eax
mov ecx, dword [ebx]
jle 0x4993c8
cmp byte [ecx], 0x20
jne 0x4993be
lea ebx, [ebx]
test eax, eax
jle 0x4993be
mov dl, byte [ecx + 1]
inc ecx
dec eax
cmp dl, 0x20
je 0x4993b0
cmp byte [ecx], 0
jne 0x4993c8
mov ecx, 0x5842b8
lea eax, [esp + 0x820]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4993d2
sub eax, esi
mov esi, eax
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4993e2
sub eax, edi
add eax, esi
cmp eax, 0x3b5
ja 0x499433
mov eax, ecx
mov edx, ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4993f8
lea edi, [esp + 0x820]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x499410
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx + 0x40]
test ebx, ebx
jne 0x499386
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi]
mov edx, 0x5a8ce8
mov edi, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x499440
cmp esi, dword [esp + 0x18]
jne 0x49945a
mov dword [esp + 0x10], 0
jmp 0x499483
mov eax, 0x5a8ce8
mov dword [esp + 0x10], 1
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499470
mov ecx, dword [esp + 0x14]
sub eax, edx
add ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0x40]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x499656
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp edx, dword [eax + 8]
jne 0x499656
mov edi, dword [esp + 0x1c]
cmp edi, eax
jne 0x4994b6
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
test eax, eax
jle 0x4995c5
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx]
mov ecx, eax
mov dword [esp + 0x28], ecx
lea ecx, [ecx]
mov al, byte [ebx]
cmp al, 0x20
je 0x4994da
cmp al, 9
jne 0x4994e2
test ecx, ecx
jle 0x4994e2
inc ebx
dec ecx
jmp 0x4994d0
cmp byte [ebx], 0
mov dword [esp + 0x28], ecx
je 0x499584
mov eax, 0x5a8ce8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4994f7
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499507
sub eax, esi
add eax, edx
cmp eax, 0x3b5
ja 0x499656
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499521
mov edi, 0x5a8ce8
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x499530
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x499568
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499555
mov ecx, dword [esp + 0x14]
sub eax, edx
add ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x499643
mov eax, dword [esp + 0x28]
mov edx, dword [ecx + 0x10]
jmp 0x499637
mov edi, 0x5a8ce8
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x499590
mov eax, dword [esp + 0x10]
test eax, eax
mov dx, word [0x5842b8]
mov word [edi], dx
je 0x4995ae
inc dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], eax
jne 0x499643
dec dword [esp + 0x14]
jmp 0x499643
mov eax, 0x5a8ce8
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4995d0
sub eax, edx
mov edx, dword [edi]
mov esi, eax
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4995e2
sub eax, edi
add eax, esi
cmp eax, 0x3b5
ja 0x499656
mov eax, edx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4995f6
mov edi, 0x5a8ce8
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x499605
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x499643
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499630
mov ecx, dword [esp + 0x14]
sub eax, edx
add ecx, eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x40]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x499492
mov esi, dword [esp + 0x14]
test esi, esi
jl 0x49a157
mov eax, 0x5a8ce8
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499670
sub eax, edx
cmp esi, eax
jge 0x49a157
mov cl, byte [0x5a8ce8]
xor edx, edx
xor eax, eax
test cl, cl
mov dword [esp + 0x10], edx
je 0x4996de
mov cl, byte [eax + 0x5a8ce8]
cmp cl, 0x20
je 0x4996a3
cmp cl, 9
jne 0x4996a6
inc eax
jmp 0x499693
mov cl, byte [eax + 0x5a8ce8]
test cl, cl
je 0x4996da
cmp eax, esi
jg 0x4996ec
inc edx
mov cl, byte [eax + 0x5a8ce8]
cmp cl, 0x20
je 0x4996d0
cmp cl, 9
je 0x4996d0
mov cl, byte [eax + 0x5a8ce9]
inc eax
test cl, cl
jne 0x4996b5
mov cl, byte [eax + 0x5a8ce8]
test cl, cl
jne 0x499693
mov dword [esp + 0x10], edx
cmp eax, esi
jg 0x4996f0
mov dword [esp + 0x10], 1
jmp 0x4996f0
mov dword [esp + 0x10], edx
lea eax, [esi + 0x5a8ce8]
cmp eax, 0x5a8ce8
jbe 0x499714
lea ecx, [ecx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x49972e
cmp cl, 9
je 0x499714
dec eax
cmp eax, 0x5a8ce8
ja 0x499700
mov cl, byte [eax]
cmp cl, 0x20
je 0x49972e
cmp cl, 9
je 0x49972e
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x499725
jmp 0x499747
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x49a157
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x499740
sub ecx, esi
inc ecx
push ecx
push eax
push 0x5a8ce8
call fcn.00571040
mov cl, byte [0x5a8ce8]
add esp, 0xc
test cl, cl
mov eax, 0x5a8ce8
je 0x499781
mov cl, byte [eax]
cmp cl, 0x20
je 0x49977e
cmp cl, 9
je 0x49977e
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x499768
jmp 0x499781
mov byte [eax], 0
mov edx, 0xf
mov ecx, 0x5a8ce8
call fcn.00524b30
mov al, byte [0x5a8ce8]
test al, al
je 0x49a157
mov eax, dword [0x5ae60c]
test eax, eax
je 0x499883
xor eax, eax
mov ecx, 0x201
lea edi, [esp + 0xc08]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x820]
xor ebx, ebx
push eax
mov edx, 0x3e7
lea ecx, [esp + 0xc38]
mov dword [esp + 0x2c], ebx
call fcn.0041ee40
push 0x5a8ce8
mov edx, 0x3e7
lea ecx, [esp + 0x101f]
call fcn.0041ee40
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1404], ecx
lea eax, [esp + 0xc08]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0xbbc]
push 1
push 0x1d
push str.HOTLINK
mov dword [esp + 0x141c], edx
push ebx
mov edx, esi
call fcn.0050e610
test eax, eax
je 0x499883
cmp dword [ebp + 8], 1
jne 0x49985a
mov ecx, dword [esi + 0xbbc]
lea edx, [esp + 0xc08]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push 0x1d
push str.HOTLINK
push ebx
mov edx, esi
call fcn.0050e610
mov eax, dword [0x5a90d4]
mov ecx, dword [esp + 0x2c]
inc eax
mov dword [0x5a90d4], eax
mov dword [0x5a90d0], ecx
mov dword [0x5a9270], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [0x5a8ce8]
test al, al
mov edi, dword [esp + 0x24]
mov esi, 0x5a8ce8
je 0x4999e2
lea esp, [esp]
mov edx, edi
mov ecx, esi
call fcn.004ff650
test al, al
je 0x4998b7
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4998a0
jmp 0x4998c8
mov edx, edi
mov ecx, esi
call fcn.004ff610
test al, al
je 0x4999e2
test esi, esi
je 0x4999e2
cmp byte [esi], 0
je 0x4999e2
push 0x2c
push esi
call fcn.00570260
add esp, 8
test eax, eax
je 0x4998eb
mov byte [eax], 0
cmp byte [esi], 0
je 0x4999e2
mov al, byte [esi + 1]
test al, al
je 0x4999e2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499904
sub eax, edx
test eax, eax
jle case.0x499925.35
movzx ecx, byte [esi + eax - 1]
add ecx, 0xffffffde
cmp ecx, 0x5b
ja case.0x499925.35
movzx edx, byte [ecx + 0x49a18c]
jmp dword [edx*4 + 0x49a184]
mov byte [esi + eax - 1], 0
cmp byte [esi], 0
je 0x49a157
mov edx, dword [0x5a90d4]
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x2c]
inc edx
cmp eax, 1
mov dword [0x5a90d4], edx
mov dword [0x5a90d0], edi
jne 0x4999a2
call fcn.0041d5b0
push esi
lea eax, [esp + 0x54]
push str._join__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
add esp, 0xc
push eax
push 0
push 0
push 0
push 0
lea edx, [esp + 0x64]
call fcn.0043e080
mov dword [0x5a9270], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x49a13f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4999b0
sub eax, edx
inc eax
push eax
push esi
push 0x5a8ce8
call fcn.00571040
add esp, 0xc
mov ecx, 1
call fcn.004d7f40
mov ecx, dword [esp + 0x34]
push ecx
mov edx, 0x14
jmp 0x49a138
mov eax, 0x5a8ce8
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4999f0
sub eax, edx
cmp eax, 2
jb 0x499c82
push 0x2e
push 0x5a8cea
call fcn.00570260
add esp, 8
test eax, eax
je 0x499c82
movzx eax, byte [0x5a8ce8]
add eax, 0xffffffde
cmp eax, 0x59
ja case.0x499a2f.35
movzx edx, byte [eax + 0x49a1f0]
jmp dword [edx*4 + 0x49a1e8]
mov eax, 0x5a8ce9
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499a40
sub eax, edx
inc eax
push eax
push 0x5a8ce9
push 0x5a8ce8
call fcn.00571040
add esp, 0xc
mov eax, 0x5a8ce8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499a65
sub eax, edx
mov esi, eax
test esi, esi
jle case.0x499a8a.35
movzx eax, byte [esi + 0x5a8ce7]
add eax, 0xffffffde
cmp eax, 0x5b
ja case.0x499a8a.35
movzx eax, byte [eax + 0x49a258]
jmp dword [eax*4 + 0x49a24c]
push 0x587d74
push 0x5a8ce8
call fcn.00570b40
add esp, 8
test eax, eax
jne case.0x499a8a.35
mov byte [esi + 0x5a8ce7], 0
mov al, byte [0x5a8ce8]
test al, al
je 0x49a157
push 0x3a
push 0x5a8ce8
mov dword [0x5a90d4], 0
call fcn.00570260
add esp, 8
test eax, eax
je 0x499b42
push 7
push 0x587d68
push 0x5a8ce8
call fcn.00580a2f
add esp, 0xc
test eax, eax
jne 0x499afa
mov esi, 0xb
jmp 0x499bc2
push 8
push 0x587d5c
push 0x5a8ce8
call fcn.00580a2f
add esp, 0xc
test eax, eax
jne 0x499b1c
mov esi, 0xc
jmp 0x499bc2
push 6
push 0x587d54
push 0x5a8ce8
call fcn.00580a2f
add esp, 0xc
test eax, eax
jne 0x49a157
mov esi, 0xa
jmp 0x499bc2
push 4
push 0x587d4c
push 0x5a8ce8
call fcn.00580a2f
add esp, 0xc
test eax, eax
je 0x499ba6
push 4
push 0x587d44
push 0x5a8ce8
call fcn.00580a2f
add esp, 0xc
test eax, eax
je 0x499ba6
push 0x40
push 0x5a8ce8
call fcn.00570260
add esp, 8
test eax, eax
je 0x49a157
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x49a157
inc dword [0x5a90d4]
mov esi, 6
jmp 0x499bc2
push 0x2e
push 0x5a8cec
mov esi, 8
call fcn.00570260
add esp, 8
test eax, eax
je 0x49a157
mov eax, 0x5a8ce8
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499bd0
sub eax, edx
cmp eax, esi
jl 0x49a157
mov ecx, dword [0x5a90d4]
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x2c]
inc ecx
cmp eax, 1
mov dword [0x5a90d4], ecx
mov dword [0x5a90d0], esi
jne 0x499c5c
cmp ecx, 2
mov ecx, 0x5a8ce8
jne 0x499c2b
mov edx, dword [esp + 0x24]
call fcn.00508bd0
mov dword [0x5a9270], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0046e490
test eax, eax
je 0x49a096
xor edx, edx
mov ecx, 0x5a8ce8
call fcn.0053ae70
mov dword [0x5a9270], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x49a096
cmp ecx, 1
jne 0x49a096
call fcn.004d94f0
mov ecx, dword [esp + 0x34]
push ecx
mov edx, 0x1b
jmp 0x49a08f
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x708]
test eax, eax
je 0x499ca2
cmp eax, 1
je 0x499ca2
cmp eax, 2
jne 0x49a157
mov edi, dword [esp + 0x24]
mov ecx, edi
call fcn.00498da0
push 0x5a91a0
push 0x5a90d8
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x499cc4
mov byte [0x5a91a0], al
push 0x5a9204
push 0x5a913c
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x499cdf
mov byte [0x5a9204], al
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x708], 1
jne 0x499e6a
mov ebx, dword [esp + 0x14]
xor esi, esi
mov edi, 0x5a90d8
jmp 0x499d00
cmp byte [edi], 0
je 0x499d42
mov ecx, dword [esp + 0x20]
add ecx, 0x6c4
push ecx
xor edx, edx
mov ecx, edi
xor ebx, ebx
xor esi, esi
call fcn.00491f60
test eax, eax
je 0x499d42
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 0x6b8]
test esi, esi
je 0x499d42
nop
cmp esi, eax
je 0x499d3e
mov esi, dword [esi + 0x40]
inc ebx
test esi, esi
jne 0x499d30
jmp 0x499d42
test esi, esi
jne 0x499d4f
add edi, 0x64
cmp edi, 0x5a9268
jl 0x499d00
jmp 0x499d60
mov ecx, dword [esi]
mov edx, 0x5a8ce8
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x499d56
test esi, esi
je 0x499e6a
mov edx, dword [0x5a90d4]
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x2c]
inc edx
cmp eax, 1
mov dword [0x5a90d4], edx
mov dword [0x5a90d0], edi
jne 0x499df8
mov al, byte [0x5a3dc4]
test al, al
je 0x499e52
call fcn.0041d5b0
xor eax, eax
jmp 0x499da0
mov cl, byte [eax + 0x5a3dc4]
mov byte [esp + eax + 0x50], cl
inc eax
test cl, cl
jne 0x499da0
mov esi, dword [esi]
lea ecx, [esp + 0x438]
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
test al, al
jne 0x499db8
mov eax, dword [esp + 0x24]
push eax
push 0
push 0
push 1
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x64]
mov ecx, edi
call fcn.0043e080
mov dword [0x5a9270], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x499e3c
push 1
push 1
push ebx
mov edx, 0x8098
mov ecx, edi
call fcn.0041e370
call fcn.004d80d0
mov edx, dword [esp + 0x34]
push edx
mov edx, 3
mov ecx, edi
call fcn.004d44d0
mov dword [0x5a9270], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
jne 0x499e52
push 1
push 1
push ebx
mov edx, 0x8098
mov ecx, edi
call fcn.0041e370
mov dword [0x5a9270], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x215c]
test ecx, ecx
je 0x499eab
mov esi, 0x5a90d8
lea ecx, [ecx]
cmp byte [esi], 0
je 0x499ea0
mov ecx, dword [esp + 0x24]
push ecx
mov edx, 1
mov ecx, esi
call fcn.004e6bd0
mov edi, eax
test edi, edi
jne 0x499f75
add esi, 0x64
cmp esi, 0x5a9268
jl 0x499e80
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x20e0]
test ecx, ecx
je 0x49a157
xor esi, esi
mov edi, 0x5a90d8
mov ebx, eax
cmp byte [edi], 0
je 0x499ef0
mov esi, dword [ebx + 0x20e0]
test esi, esi
je 0x499ef0
mov ecx, dword [esi]
push edi
push ecx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x49a0ae
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x499ed5
add edi, 0x64
cmp edi, 0x5a9268
jl 0x499ec6
test esi, esi
je 0x49a157
mov ebx, dword [esp + 0x24]
mov edx, dword [0x5a90d4]
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x2c]
inc edx
cmp eax, 1
mov dword [0x5a90d4], edx
mov dword [0x5a90d0], edi
jne 0x49a124
mov al, byte [0x5a3bbc]
test al, al
je 0x49a13f
call fcn.0041d5b0
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x708]
mov ecx, 2
cmp edx, ecx
jne 0x49a0c4
cmp dword [eax + 0x70c], ecx
jne 0x49a0c4
xor eax, eax
mov cl, byte [eax + 0x5a3fcc]
mov byte [esp + eax + 0x50], cl
inc eax
test cl, cl
jne 0x499f61
jmp 0x49a0df
mov edx, 0x5a8ce8
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x499f80
push 0x21
push 0x5a8ce8
call fcn.00570260
add esp, 8
test eax, eax
je 0x499fa0
mov byte [eax], 0
mov edx, dword [0x5a90d4]
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x2c]
inc edx
cmp eax, 1
mov dword [0x5a90d4], edx
mov dword [0x5a90d0], esi
jne 0x49a079
mov al, byte [0x5a3ec8]
test al, al
je 0x49a096
call fcn.0041d5b0
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x708]
mov ecx, 2
cmp edx, ecx
jne 0x49a003
cmp dword [eax + 0x70c], ecx
jne 0x49a003
xor eax, eax
mov cl, byte [eax + 0x5a3fcc]
mov byte [esp + eax + 0x50], cl
inc eax
test cl, cl
jne 0x499ff2
jmp 0x49a014
xor eax, eax
mov cl, byte [eax + 0x5a3ec8]
mov byte [esp + eax + 0x50], cl
inc eax
test cl, cl
jne 0x49a005
lea edx, [esp + 0x438]
mov eax, edi
sub edx, edi
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x49a020
lea edx, [esp + 0x438]
push 0x21
push edx
call fcn.00570260
add esp, 8
test eax, eax
je 0x49a043
mov byte [eax], 0
mov eax, dword [esp + 0x24]
push eax
push 0
push 0
push 1
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x64]
mov ecx, esi
call fcn.0043e080
mov dword [0x5a9270], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x49a096
mov ecx, eax
call fcn.004d8280
mov edx, dword [esp + 0x34]
push edx
mov edx, 7
mov ecx, esi
call fcn.004d44d0
mov dword [0x5a9270], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
mov edx, 0x5a8ce8
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x49a0b5
jmp 0x499f07
xor eax, eax
jmp 0x49a0d0
mov cl, byte [eax + 0x5a3bbc]
mov byte [esp + eax + 0x50], cl
inc eax
test cl, cl
jne 0x49a0d0
mov esi, dword [esi]
lea ecx, [esp + 0x438]
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
test al, al
jne 0x49a0e8
push ebx
push 0
push 0
push 1
lea edx, [esp + 0x448]
push edx
lea edx, [esp + 0x64]
mov ecx, edi
call fcn.0043e080
mov dword [0x5a9270], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x49a13f
call fcn.004d8040
mov eax, dword [esp + 0x34]
push eax
mov edx, 2
mov ecx, edi
call fcn.004d44d0
mov dword [0x5a9270], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [0x5a90d4], eax
mov dword [0x5a9270], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [0x5a9270], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4