Function at 0x5158f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x25
push 0
push 0
dec ecx
jne 0x515900
push ebx
push esi
push edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x516e85
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [0x554a1c]
call fcn.0046de00
mov eax, dword [0x550240]
mov eax, dword [eax]
cmp byte [eax + 0x7b2], 0
jne 0x51594b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
mov edx, dword [eax]
call dword [edx + 0xf0]
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
mov eax, dword [eax + 0x280]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov byte [eax + 0x5e4], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x5e5], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x379], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x600], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x601], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x378], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x8a2], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x710], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x711], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x712], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x8ba], 0
mov eax, dword [ebp - 4]
add eax, 0x714
call fcn.00405480
mov eax, dword [ebp - 4]
add eax, 0x718
call fcn.00405480
mov eax, dword [ebp - 4]
add eax, 0x71c
call fcn.00405480
mov eax, dword [ebp - 4]
mov byte [eax + 0x602], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x603], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x604], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x605], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x8b8], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x8b9], 0
mov eax, dword [ebp - 4]
add eax, 0x37c
call fcn.00405480
mov eax, dword [ebp - 4]
add eax, 0x380
call fcn.00405480
mov eax, dword [ebp - 4]
add eax, 0x384
call fcn.00405480
mov eax, dword [ebp - 4]
add eax, 0x388
call fcn.00405480
mov eax, dword [ebp - 4]
add eax, 0x38c
call fcn.00405480
mov eax, dword [ebp - 4]
add eax, 0x390
call fcn.00405480
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x8a4], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4b4], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4b8], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x72d], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x8a0], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x72c], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4bc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c0], edx
mov eax, dword [0x550240]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0x7b4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e4]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4ec]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c8]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d0]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d4]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4dc]
mov edx, dword [eax]
call dword [edx + 0x44]
push 0
mov eax, dword [ebp - 4]
add eax, 0x4e0
mov ecx, 1
mov edx, dword [0x4dc910]
call fcn.0040656c
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5ec]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x394]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
add eax, 0x7c0
call fcn.00406c5c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x7c4], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x7cc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x7f4], edx
push 0
mov eax, dword [ebp - 4]
add eax, 0x894
mov ecx, 1
mov edx, dword [0x4dca48]
call fcn.0040656c
add esp, 4
push 0
mov eax, dword [ebp - 4]
add eax, 0x898
mov ecx, 1
mov edx, dword [0x4dca68]
call fcn.0040656c
add esp, 4
push 0
mov eax, dword [ebp - 4]
add eax, 0x4f4
mov ecx, 1
mov edx, dword [0x4dc930]
call fcn.0040656c
add esp, 4
push 0
mov eax, dword [ebp - 4]
add eax, 0x890
mov ecx, 1
mov edx, dword [0x4dca28]
call fcn.0040656c
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4f8]
call fcn.004063b0
sub eax, 1
jno 0x515c83
call fcn.00403bec
test eax, eax
jl 0x515ccc
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], 0
push 0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4f8]
test edx, edx
je 0x515ca9
cmp eax, dword [edx - 4]
jb 0x515cae
call fcn.00403be4
lea eax, [edx + eax*4]
mov ecx, 1
mov edx, dword [0x4dc950]
call fcn.0040656c
add esp, 4
inc dword [ebp - 0x30]
dec dword [ebp - 0x4c]
jne 0x515c92
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4fc]
call fcn.004063b0
sub eax, 1
jno 0x515ce4
call fcn.00403bec
test eax, eax
jl 0x515d2d
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], 0
push 0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4fc]
test edx, edx
je 0x515d0a
cmp eax, dword [edx - 4]
jb 0x515d0f
call fcn.00403be4
lea eax, [edx + eax*4]
mov ecx, 1
mov edx, dword [0x4dc990]
call fcn.0040656c
add esp, 4
inc dword [ebp - 0x30]
dec dword [ebp - 0x4c]
jne 0x515cf3
push 0
mov eax, dword [ebp - 4]
add eax, 0x4f8
mov ecx, 1
mov edx, dword [0x4dc970]
call fcn.0040656c
add esp, 4
push 0
mov eax, dword [ebp - 4]
add eax, 0x4fc
mov ecx, 1
mov edx, dword [0x4dc9b0]
call fcn.0040656c
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, 0x1f
jbe 0x515d79
call fcn.00403be4
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x610]
call fcn.00405480
mov eax, dword [ebp - 0x30]
cmp eax, 0x1f
jbe 0x515d95
call fcn.00403be4
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + eax*4 + 0x690], ecx
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0x20
jne 0x515d6c
mov eax, dword [ebp - 4]
add eax, 0x500
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x5c]
call fcn.004063b0
sub eax, 1
jno 0x515de8
call fcn.00403bec
test eax, eax
jl 0x515e1e
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x5c]
test edx, edx
je 0x515e09
cmp eax, dword [edx - 4]
jb 0x515e0e
call fcn.00403be4
mov eax, dword [edx + eax*4]
call fcn.00403d1c
inc dword [ebp - 0x30]
dec dword [ebp - 0x4c]
jne 0x515df7
push 0
mov eax, dword [ebp - 0x50]
add eax, 0x5c
mov ecx, 1
mov edx, dword [0x4dc568]
call fcn.0040656c
add esp, 4
push 0
push 0
mov eax, dword [ebp - 0x50]
add eax, 0x64
mov ecx, 2
mov edx, dword [0x4dc5a8]
call fcn.0040656c
add esp, 8
push 0
push 0
mov eax, dword [ebp - 0x50]
add eax, 0x68
mov ecx, 2
mov edx, dword [0x4dc5e8]
call fcn.0040656c
add esp, 8
push 0
mov eax, dword [ebp - 0x50]
add eax, 0x6c
mov ecx, 1
mov edx, dword [0x4dc608]
call fcn.0040656c
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, 0xf
jbe 0x515ea0
call fcn.00403be4
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + eax*4 + 0x7fc], ecx
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0x10
jne 0x515e93
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_GetAsyncKeyState
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0x100
jne 0x515eba
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, 2
jbe 0x515ee1
call fcn.00403be4
mov edx, dword [ebp - 4]
mov byte [edx + eax + 0x8bb], 0
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 3
jne 0x515ed4
push 0
mov eax, dword [ebp - 4]
add eax, 0x5f0
mov ecx, 1
mov edx, dword [0x4dc9d0]
call fcn.0040656c
add esp, 4
push 0
mov eax, dword [ebp - 4]
add eax, 0x5f4
mov ecx, 1
mov edx, dword [0x4dc9f0]
call fcn.0040656c
add esp, 4
lea eax, [ebp - 0x64]
push eax
call sub.kernel32.dll_GetSystemTime
mov eax, dword [ebp - 4]
add eax, 0x5f8
push eax
lea eax, [ebp - 0x64]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
lea eax, [ebp - 0x6c]
call fcn.0054a844
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
add eax, 0x374
call fcn.004054bc
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x7f8], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c8]
mov ecx, dword [eax]
call dword [ecx + 0x28]
xor eax, eax
push ebp
push 0x516cca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00405480
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x48]
call fcn.00405480
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 1
mov byte [ebp - 0x29], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x515ff1
call fcn.00403bec
test eax, eax
jl 0x5165de
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp byte [ebp - 9], 0
jne 0x51622a
mov eax, dword [ebp - 0x44]
xor edx, edx
call fcn.00405790
je 0x51608b
mov eax, dword [ebp - 0x44]
call fcn.0040566c
mov edx, dword [ebp - 0x44]
dec eax
test edx, edx
je 0x51603d
cmp eax, dword [edx - 4]
jb 0x516042
call fcn.00403be4
inc eax
cmp word [edx + eax*2 - 2], 0x5f
jne 0x51608b
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x44]
call fcn.0040566c
mov ecx, eax
sub ecx, 1
jno 0x516063
call fcn.00403bec
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00405814
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x48]
call fcn.00405678
add dword [ebp - 0x38], 1
jno 0x516086
call fcn.00403bec
jmp 0x5165d2
mov eax, dword [ebp - 0x48]
xor edx, edx
call fcn.00405790
je 0x5160e7
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
call fcn.004056d8
lea eax, [ebp - 0x48]
call fcn.00405480
push 0
push 1
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov eax, 0x516e9c
call fcn.004af480
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jle 0x5160e7
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x34]
sub ecx, 1
jno 0x5160da
call fcn.00403bec
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00405814
mov edx, dword [ebp - 0x44]
mov eax, 0x516ea8
call fcn.0040598c
test eax, eax
jle 0x516161
push 1
lea eax, [ebp - 0x74]
push eax
mov ecx, 0x516eb4
mov edx, 0x516ec4
mov eax, dword [ebp - 0x44]
call fcn.004af72c
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x44]
call fcn.004054e4
push 1
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x516ed4
mov edx, 0x516ee8
mov eax, dword [ebp - 0x44]
call fcn.004af72c
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x44]
call fcn.004054e4
push 1
lea eax, [ebp - 0x7c]
push eax
mov ecx, 0x516efc
mov edx, 0x516f10
mov eax, dword [ebp - 0x44]
call fcn.004af72c
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x44]
call fcn.004054e4
push 0
push 1
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov eax, 0x516f24
call fcn.004af480
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x51622a
push 0
push 0
mov ecx, dword [ebp - 0x44]
mov dx, 0x28
mov eax, dword [ebp - 4]
call fcn.004e0d84
mov ebx, eax
push 0
push 0
mov ecx, dword [ebp - 0x44]
mov dx, 0x29
mov eax, dword [ebp - 4]
call fcn.004e0d84
cmp ebx, eax
je 0x5161bc
lea eax, [ebp - 0x44]
mov edx, 0x516f30
call fcn.004054e4
jmp 0x51622a
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
dec eax
test edx, edx
je 0x5161cc
cmp eax, dword [edx - 4]
jb 0x5161d1
call fcn.00403be4
inc eax
mov word [edx + eax*2 - 2], 0x5d
push ebp
mov eax, dword [ebp - 0x34]
sub eax, 1
jno 0x5161e7
call fcn.00403bec
mov edx, dword [ebp - 0x44]
call fcn.005136b0
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x516208
lea eax, [ebp - 0x44]
mov edx, 0x516f30
call fcn.004054e4
jmp 0x51622a
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
dec eax
test edx, edx
je 0x516218
cmp eax, dword [edx - 4]
jb 0x51621d
call fcn.00403be4
inc eax
mov word [edx + eax*2 - 2], 0x5b
jmp 0x516161
add dword [ebp - 0x38], 1
jno 0x516235
call fcn.00403bec
mov eax, dword [ebp - 0x44]
mov edx, 0x516f30
call fcn.00405790
jne 0x5162df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, 0x516f5c
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
jno 0x51626e
call fcn.00403bec
call fcn.0040a398
lea eax, [ebp - 0x88]
mov edx, 0x516fa8
call fcn.00404f40
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
call fcn.0040564c
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x8c]
pop eax
call fcn.00405678
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 4]
call fcn.004e070c
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x5165d2
mov byte [ebp - 0x2a], 0
cmp byte [ebp - 9], 0
jne 0x516356
lea eax, [ebp - 0x90]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00405814
mov eax, dword [ebp - 0x90]
mov edx, 0x516fb0
call fcn.00405790
je 0x516356
lea eax, [ebp - 0x94]
push eax
mov ecx, 8
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00405814
mov eax, dword [ebp - 0x94]
mov edx, 0x516fbc
call fcn.00405790
je 0x516356
push 0
push 1
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov eax, 0x516fd4
call fcn.004af480
test eax, eax
jne 0x51635a
mov byte [ebp - 0x2a], 1
cmp byte [ebp - 9], 0
je 0x5163cb
mov edx, dword [ebp - 0x44]
mov eax, 0x516fd4
call fcn.0040598c
test eax, eax
jle 0x5163cb
lea eax, [ebp - 0x98]
push eax
mov ecx, 0xd
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00405814
mov eax, dword [ebp - 0x98]
mov edx, 0x516fdc
call fcn.00405790
je 0x5163c7
lea eax, [ebp - 0x9c]
push eax
mov ecx, 0xd
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00405814
mov eax, dword [ebp - 0x9c]
mov edx, 0x516ffc
call fcn.00405790
jne 0x5163cb
mov byte [ebp - 0x2a], 0
cmp byte [ebp - 0x2a], 0
je 0x5164d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push ebp
call fcn.00513a5c
pop ecx
lea eax, [ebp - 0xa0]
push eax
mov ecx, 0xa
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00405814
mov eax, dword [ebp - 0xa0]
mov edx, 0x51701c
call fcn.00405790
jne 0x516441
push 0
push 1
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov eax, 0x517038
call fcn.004af480
test eax, eax
jle 0x516441
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 1
mov byte [ebp - 0x29], 1
cmp byte [ebp - 0x29], 0
je 0x516461
mov eax, dword [ebp - 0x44]
mov edx, 0x517048
call fcn.00405790
jne 0x516461
mov dword [ebp - 0x3c], 2
mov byte [ebp - 0x29], 0
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
jno 0x516474
call fcn.00403bec
call fcn.0040a398
lea eax, [ebp - 0xac]
mov edx, 0x516fa8
call fcn.00404f40
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
call fcn.0040564c
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 0x44]
call fcn.00405678
mov edx, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 4]
call fcn.004e070c
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x5165d2
push 1
push 1
push 1
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x44]
mov cl, 1
mov edx, 0x516fd4
call fcn.004aed24
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0x40]
call fcn.0040a058
mov eax, dword [ebp - 0x40]
xor edx, edx
call fcn.00405790
je 0x5165d2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push ebp
call fcn.00513a5c
pop ecx
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
jno 0x51653a
call fcn.00403bec
call fcn.0040a398
lea eax, [ebp - 0xbc]
mov edx, 0x516fa8
call fcn.00404f40
mov edx, dword [ebp - 0xbc]
lea eax, [ebp - 0xb8]
call fcn.0040564c
lea eax, [ebp - 0xb8]
mov edx, dword [ebp - 0x40]
call fcn.00405678
mov edx, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp - 4]
call fcn.004e070c
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp byte [ebp - 9], 0
je 0x5164d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
sub edx, 1
jno 0x5165ba
call fcn.00403bec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov ecx, 0x517058
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x5164d5
inc dword [ebp - 0x30]
dec dword [ebp - 0x4c]
jne 0x516004
mov dl, 1
mov eax, dword [0x41b98c]
call fcn.00403cec
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x516605
call fcn.00403bec
test eax, eax
jl 0x516b06
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push 0
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x40]
mov cx, 0x20
mov eax, dword [ebp - 4]
call fcn.004de6f0
mov eax, dword [ebp - 0x44]
mov edx, 0x5170a0
call fcn.00405790
je 0x51665f
mov eax, dword [ebp - 0x44]
mov edx, 0x5170ac
call fcn.00405790
jne 0x51668c
lea ecx, [ebp - 0xc0]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00517334
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x5170c0
call fcn.00405790
jne 0x5166c8
lea ecx, [ebp - 0xc4]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00517d7c
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x5170cc
call fcn.00405790
jne 0x516704
lea ecx, [ebp - 0xc8]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00518358
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x5170dc
call fcn.00405790
jne 0x516740
lea ecx, [ebp - 0xcc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00518620
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x5170f0
call fcn.00405790
jne 0x51677c
lea ecx, [ebp - 0xd0]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.0051789c
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x517104
call fcn.00405790
jne 0x5167bc
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.0051898c
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x517110
call fcn.00405790
je 0x5167ed
mov eax, dword [ebp - 0x44]
mov edx, 0x517124
call fcn.00405790
je 0x5167ed
mov eax, dword [ebp - 0x44]
mov edx, 0x517138
call fcn.00405790
jne 0x5168d7
mov eax, dword [ebp - 0x44]
mov edx, 0x517110
call fcn.00405790
jne 0x516826
lea eax, [ebp - 0xd8]
mov ecx, dword [ebp - 0x40]
mov edx, 0x51714c
call fcn.004056d8
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 0x44]
mov edx, 0x517124
call fcn.00405790
jne 0x51685f
lea eax, [ebp - 0xdc]
mov ecx, dword [ebp - 0x40]
mov edx, 0x517158
call fcn.004056d8
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 0x44]
mov edx, 0x517138
call fcn.00405790
jne 0x516898
lea eax, [ebp - 0xe0]
mov ecx, dword [ebp - 0x40]
mov edx, 0x517164
call fcn.004056d8
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
lea edx, [ebp - 0xe4]
mov eax, dword [ebp - 0x30]
call fcn.0040a398
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x28]
call fcn.004b15a4
test eax, eax
jge 0x516afa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov ecx, 0x517170
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x5171b4
call fcn.00405790
jne 0x516915
lea eax, [ebp - 0xe8]
mov ecx, dword [ebp - 0x40]
mov edx, 0x5171c0
call fcn.004056d8
mov ecx, dword [ebp - 0xe8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x5171cc
call fcn.00405790
jne 0x516953
lea eax, [ebp - 0xec]
mov ecx, dword [ebp - 0x40]
mov edx, 0x5171dc
call fcn.004056d8
mov ecx, dword [ebp - 0xec]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x5171e8
call fcn.00405790
jne 0x516991
lea eax, [ebp - 0xf0]
mov ecx, dword [ebp - 0x40]
mov edx, 0x5171f8
call fcn.004056d8
mov ecx, dword [ebp - 0xf0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x517204
call fcn.00405790
jne 0x5169cf
lea eax, [ebp - 0xf4]
mov ecx, dword [ebp - 0x40]
mov edx, 0x517214
call fcn.004056d8
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x517220
call fcn.00405790
jne 0x516a0d
lea eax, [ebp - 0xf8]
mov ecx, dword [ebp - 0x40]
mov edx, 0x517230
call fcn.004056d8
mov ecx, dword [ebp - 0xf8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x51723c
call fcn.00405790
jne 0x516a4b
lea eax, [ebp - 0xfc]
mov ecx, dword [ebp - 0x40]
mov edx, 0x51724c
call fcn.004056d8
mov ecx, dword [ebp - 0xfc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x517258
call fcn.00405790
jne 0x516a86
lea eax, [ebp - 0x100]
mov ecx, dword [ebp - 0x40]
mov edx, 0x51726c
call fcn.004056d8
mov ecx, dword [ebp - 0x100]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x517278
call fcn.00405790
jne 0x516ac1
lea eax, [ebp - 0x104]
mov ecx, dword [ebp - 0x40]
mov edx, 0x517288
call fcn.004056d8
mov ecx, dword [ebp - 0x104]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x516afa
mov eax, dword [ebp - 0x44]
mov edx, 0x517294
call fcn.00405790
jne 0x516afa
lea eax, [ebp - 0x108]
mov ecx, dword [ebp - 0x40]
mov edx, 0x5172a8
call fcn.004056d8
mov ecx, dword [ebp - 0x108]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc dword [ebp - 0x30]
dec dword [ebp - 0x4c]
jne 0x516618
mov eax, dword [ebp - 0x28]
call fcn.00403d1c
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x10c]
mov eax, 0x516f30
call fcn.0040598c
test eax, eax
jne 0x516cc0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e4]
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x516b52
call fcn.00403bec
test eax, eax
jl 0x516c93
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e4]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x44]
call fcn.0040564c
push 0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
add eax, 0x500
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x44]
push 0x5172b4
push dword [ebp - 0x44]
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00405748
mov edx, dword [ebp - 0x114]
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.004e30e4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x516c87
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push 0
lea eax, [ebp - 0x118]
push eax
lea edx, [ebp - 0x44]
mov cx, 0x28
mov eax, dword [ebp - 4]
call fcn.004de6f0
push 0
lea eax, [ebp - 0x11c]
push eax
lea edx, [ebp - 0x44]
mov cx, 0x29
mov eax, dword [ebp - 4]
call fcn.004de6f0
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x44]
call fcn.004054e4
mov eax, dword [ebp - 0x44]
xor edx, edx
call fcn.00405790
je 0x516c87
lea ecx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 4]
add eax, 0x724
call fcn.004054bc
push 0
push 0
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x500]
mov edx, 0x5172bc
mov eax, dword [ebp - 4]
call fcn.004e07c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516db0
inc dword [ebp - 0x30]
dec dword [ebp - 0x4c]
jne 0x516b65
cmp byte [ebp - 9], 0
je 0x516cc0
push 0
push 0
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x500]
mov edx, 0x5172ec
mov eax, dword [ebp - 4]
call fcn.004e07c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516db0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516d25
mov eax, dword [ebp - 4]
add eax, 0x724
call fcn.00405480
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
mov eax, dword [ebp - 4]
add eax, 0x4f4
mov ecx, 1
mov edx, dword [0x4dc930]
call fcn.0040656c
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
mov eax, dword [ebp - 4]
add eax, 0x4f8
mov ecx, 1
mov edx, dword [0x4dc970]
call fcn.0040656c
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c4]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
mov eax, dword [ebp - 4]
add eax, 0x4fc
mov ecx, 1
mov edx, dword [0x4dc9b0]
call fcn.0040656c
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516e8f
lea eax, [ebp - 0x128]
call fcn.00404c58
lea eax, [ebp - 0x124]
mov edx, 5
call fcn.00405498
lea eax, [ebp - 0x110]
call fcn.00404c58
lea eax, [ebp - 0x10c]
mov edx, 0xa
call fcn.00405498
lea eax, [ebp - 0xe4]
call fcn.00404c58
lea eax, [ebp - 0xe0]
mov edx, 9
call fcn.00405498
lea eax, [ebp - 0xbc]
call fcn.00404c58
lea eax, [ebp - 0xb8]
mov edx, 3
call fcn.00405498
lea eax, [ebp - 0xac]
call fcn.00404c58
lea eax, [ebp - 0xa8]
mov edx, 8
call fcn.00405498
lea eax, [ebp - 0x88]
call fcn.00404c58
lea eax, [ebp - 0x84]
mov edx, 8
call fcn.00405498
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00405498
lea eax, [ebp - 0x1c]
call fcn.00405480
lea eax, [ebp - 0x10]
call fcn.00405480
lea eax, [ebp - 8]
call fcn.00405480
ret