Function at 0x416448
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x4c], ecx
cmp ebx, dword [0x5a1a24]
jne 0x41649b
test ebx, ebx
jne 0x4164c7
mov dword [0x5a1974], ecx
mov dword [0x5a1a18], ecx
mov dword [0x5a1a1c], ecx
mov dword [0x5a1a20], ecx
mov dword [0x5a1a24], ebx
mov dword [0x5a1a2c], ecx
test ebx, ebx
je 0x417748
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push ebx
call fcn.0041412a
push ebx
call fcn.00413f31
push ebx
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], al
mov byte [ebp - 0x7c], al
call fcn.00413ef2
mov esi, eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x44], esi
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.004141ba
add esp, 0x44
push ebx
call fcn.004142d6
push ebx
mov dword [ebp - 0x8c], eax
call fcn.00413fc4
mov ecx, eax
and eax, 0x20
and ecx, 0x4e
mov dword [ebp - 0x60], eax
push ebx
mov dword [ebp - 0x80], ecx
call fcn.004160d8
push 0
push ebx
mov dword [ebp - 0x68], eax
call fcn.004153a0
add esp, 0x14
cmp dword [0x5a1a2c], 0
je 0x416578
mov eax, dword [ebp + 8]
push eax
call fcn.0049e2d6
and dword [0x5a1a2c], 0
pop ecx
push 0x77
pop eax
jmp 0x41774a
cmp dword [0x5a1a28], 0
je 0x4165af
cmp dword [0x58b4a4], 0
jl 0x4165af
cmp dword [0x58b4a8], 0
jle 0x4165af
push ebx
call fcn.00413c47
pop ecx
cmp dword [0x58b4a4], eax
jne 0x4165af
cmp dword [0x58b4a8], esi
jne 0x4165af
xor esi, esi
inc esi
jmp 0x4165b1
xor esi, esi
mov edi, dword [ebp + 8]
test edi, edi
je 0x417748
cmp dword [ebp - 0x14], 0
je 0x417748
cmp dword [ebp - 0x30], 0
je 0x417748
test esi, esi
jne 0x416607
and dword [0x5a1a28], esi
or dword [0x58b4a4], 0xffffffff
or dword [0x58b4a8], 0xffffffff
push 0x5a1978
call fcn.0049f690
pop ecx
test eax, eax
jne 0x416607
push 0x50
push eax
push 0x5a1978
call fcn.004e4da0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040dced
mov eax, dword [ebp - 0x30]
inc eax
push eax
push 0
push edi
call fcn.004e4da0
xor edx, edx
add esp, 0x14
and dword [ebp - 4], edx
mov dword [ebp - 8], edx
test esi, esi
je 0x4166d0
xor ecx, ecx
cmp byte [0x5a1978], cl
je 0x416671
mov ebx, dword [ebp - 0x30]
sub edi, 0x5a1978
cmp ecx, dword [0x58b4a8]
jge 0x41666b
cmp ecx, ebx
jge 0x41666b
mov al, byte [ecx + 0x5a1978]
inc edx
mov byte [edi + ecx + 0x5a1978], al
inc ecx
cmp byte [ecx + 0x5a1978], 0
jne 0x416647
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x14]
mov eax, edx
push 0
sub eax, ecx
mov dword [ebp - 4], edx
pop edi
push dword [ebp - 0x10]
cmovns edi, eax
push dword [ebp - 0x18]
lea esi, [edi + ecx]
call fcn.00410118
mov eax, dword [ebp - 8]
cmp esi, eax
push 0
cmovle eax, esi
sub eax, edi
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
call fcn.0040fbec
and dword [0x5a1a28], 0
or dword [0x58b4a4], 0xffffffff
or dword [0x58b4a8], 0xffffffff
push 0x50
push 0
push 0x5a1978
call fcn.004e4da0
mov edi, dword [ebp + 8]
add esp, 0x20
and dword [ebp - 0x64], 0
call fcn.004ca9ca
cmp dword [0x56f164], 0
mov dword [ebp - 0x70], eax
je 0x417739
mov dword [ebp - 0x54], 0x1b
mov dword [ebp - 0x74], 0x76
call fcn.0040ecca
mov dword [ebp - 0x20], eax
test eax, eax
je case.0x416767.69
call fcn.004ca9ca
mov dword [ebp - 0x70], eax
call fcn.0040dc77
mov esi, eax
mov dword [ebp - 0xc], eax
cmp esi, 0x1b
je 0x4176ca
cmp esi, 0xd
je 0x41748b
cmp esi, 0xa
je 0x41748b
cmp esi, 8
je 0x4173a5
cmp esi, 0xe0
je 0x416d37
test esi, esi
jne 0x416ab2
call fcn.0040dc77
mov esi, eax
lea eax, [esi - 0x3b]
cmp eax, 0x18
ja case.0x416767.69
movzx ecx, byte [eax + 0x41778c]
jmp dword [ecx*4 + 0x417750]
push ebx
call fcn.00413cad
pop ecx
cmp eax, 1
jne case.0x416767.67
push 0xa
pop esi
mov dword [ebp - 0xc], esi
jmp 0x416719
push 0x2e
jmp 0x41677c
push 0x30
jmp 0x41677c
push 0x31
jmp 0x41677c
push 0x32
jmp 0x41677c
push 0x33
jmp 0x41677c
push 0x34
jmp 0x41677c
push 0x35
jmp 0x41677c
push 0x36
jmp 0x41677c
push 0x37
jmp 0x41677c
push 0x38
jmp 0x41677c
push 0x39
jmp 0x41677c
lea eax, [esi - 0x3a]
push eax
push ebx
call fcn.004145a8
pop ecx
pop ecx
test eax, eax
jne 0x417586
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
test ebx, ebx
je 0x416930
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x416881
add dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.00414bfb
push ebx
call fcn.004146bf
push ebx
call fcn.00414480
add esp, 0x14
test eax, eax
jne 0x41687d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040dced
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xffffff22
push 0
push eax
call fcn.0040dced
mov esi, dword [ebp - 0x14]
mov ecx, edi
mov edx, dword [ebp - 0x18]
add esp, 0x10
sub ecx, esi
lea eax, [esi + edx]
cmp dword [ebp - 0x24], eax
jne 0x41683a
mov dword [ebp - 0x24], 0xffffff22
push dword [ebp - 0x10]
xor edi, edi
test ecx, ecx
push edx
cmovns edi, ecx
add esi, edi
cmp esi, dword [ebp - 8]
cmovg esi, dword [ebp - 8]
call fcn.00410118
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [edi + esi]
push eax
call fcn.0040fbec
add esp, 0x14
cmp dword [ebp - 0x24], 0xffffff22
je 0x41687d
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call fcn.00410118
pop ecx
pop ecx
and dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x416930
add dword [ebp - 0x38], edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.00414bfb
push ebx
call fcn.004146bf
push ebx
call fcn.00414480
add esp, 0x14
test eax, eax
jne 0x41692c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040dced
lea eax, [ebp - 0x1c]
mov edi, 0xffffff22
push 0
push eax
mov dword [ebp - 0x1c], edi
call fcn.0040dced
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
sub ecx, esi
lea eax, [esi + edx]
cmp dword [ebp - 0x1c], eax
jne 0x4168e9
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x10]
xor edi, edi
test ecx, ecx
push edx
cmovns edi, ecx
add esi, edi
cmp esi, dword [ebp - 8]
cmovg esi, dword [ebp - 8]
call fcn.00410118
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [edi + esi]
push eax
call fcn.0040fbec
add esp, 0x14
cmp dword [ebp - 0x1c], 0xffffff22
je 0x41692c
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.00410118
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
call fcn.0040ea2e
test eax, eax
je 0x416949
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040dc77
push 0
push ebx
call fcn.004157ee
mov edi, dword [ebp - 0x8c]
pop ecx
pop ecx
test edi, edi
je 0x41696d
call fcn.004ca9ca
sub eax, dword [ebp - 0x70]
cmp eax, edi
ja 0x4176e0
push 0x76
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x416988
and dword [0x5a1a20], 0
and dword [0x5a1a1c], 0
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x56f164], 0
je 0x417739
mov edi, dword [ebp + 8]
jmp 0x4166f7
cmp dword [ebp - 8], 0
jle 0x416a4a
push edi
push 0xffffffffffffffff
push ebx
call fcn.00413cee
add esp, 0xc
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0040dced
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
cmp eax, dword [ebp - 0x18]
jle 0x4169e9
push 1
push dword [ebp - 0x7c]
call fcn.00432e61
cmp dword [0x56f164], 0
pop ecx
pop ecx
jne 0x4169bb
and dword [ebp - 4], 0
push edi
call fcn.004ee800
mov esi, dword [ebp - 0x14]
cmp esi, eax
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmovg esi, eax
push ecx
mov dword [ebp - 0x20], ecx
call fcn.00410118
push esi
push edi
call fcn.0040fc04
mov eax, dword [ebp - 0x20]
add esp, 0x14
cmp eax, 0xffffff22
je 0x416a29
push dword [ebp - 0x10]
push eax
call fcn.00410118
pop ecx
pop ecx
push edi
call fcn.0049e2d6
and dword [ebp - 8], 0
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
call fcn.00418090
add esp, 0x14
jmp case.0x416767.69
call fcn.004ca9ca
mov ecx, dword [0x5a1a1c]
sub eax, ecx
cmp eax, 0x3e8
jb 0x416a66
test ecx, ecx
jne 0x41760c
call fcn.004ca9ca
push ebx
mov dword [0x5a1a1c], eax
call fcn.00413c47
pop ecx
test eax, eax
jne 0x41761f
push ebx
call fcn.00413f6e
pop ecx
cmp eax, 3
jl 0x41761f
cmp dword [0x5a1a20], 1
jl 0x417641
push 0
push 0
push dword [ebp - 0x50]
push 1
call fcn.00418090
add esp, 0x10
jmp case.0x416767.69
cmp esi, 0x20
jl 0x416d19
cmp esi, 0x7e
jg case.0x416767.69
mov dword [ebp - 0x64], 1
cmp esi, 0x3d
jne 0x416add
cmp dword [ebp - 0x80], 0
push 0x2b
pop eax
cmovne esi, eax
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x4c], 0
je 0x416ae9
cmp dword [ebp - 8], 0
jne 0x416aef
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x60], 0
je 0x416baa
push esi
call fcn.0049f592
pop ecx
test eax, eax
jne 0x416b2b
push esi
call fcn.0049f97a
pop ecx
test eax, eax
je case.0x416767.69
mov eax, dword [ebp - 8]
push edi
mov byte [eax + edi], 0
call fcn.0049f486
pop ecx
test eax, eax
je case.0x416767.69
jmp 0x416b75
and dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 8]
test ecx, ecx
jle 0x416b78
mov esi, dword [ebp - 0x3c]
mov ebx, ecx
movsx eax, byte [esi + edi]
push eax
call fcn.0049f97a
pop ecx
test eax, eax
je 0x416b67
push esi
push edi
mov byte [ebx + edi], 0
call fcn.0049ff98
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
cmp ecx, esi
lea eax, [ecx - 1]
cmovle eax, ecx
dec ebx
mov dword [ebp - 4], eax
dec esi
inc esi
cmp esi, ebx
jl 0x416b3b
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
test edx, edx
jle 0x416baa
mov eax, dword [ebp - 0x44]
dec eax
cmp edx, eax
jl 0x416baa
cmp ecx, edx
jl 0x416baa
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x4c]
imul eax, ecx, 0x25
cmp edx, eax
jae 0x416baa
push 1
push ebx
call fcn.004153a0
push 0xd
call fcn.0041238e
add esp, 0xc
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 8], eax
jge 0x416be9
call fcn.0040ecca
test eax, eax
jne 0x416be9
cmp dword [ebp - 0x68], eax
je 0x416bc5
cmp dword [ebp - 8], eax
je 0x416be9
push esi
call fcn.0049f4d1
pop ecx
push 0
test eax, eax
je 0x416bd9
push 0
push dword [ebp - 0x28]
jmp 0x416bdf
push dword [ebp - 0x28]
push dword [ebp - 0x78]
push 5
call fcn.00418090
add esp, 0x10
push ebx
call fcn.00414480
pop ecx
test eax, eax
je 0x416c1b
and dword [ebp - 0x38], 0
xor eax, eax
and dword [ebp - 0x34], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.00414bfb
push ebx
call fcn.004146bf
add esp, 0x10
push ebx
call fcn.00414480
pop ecx
test eax, eax
jne case.0x416767.69
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 8], eax
jge case.0x416767.69
mov edx, dword [ebp - 4]
push edx
push esi
push edi
call fcn.0049f318
mov edi, dword [ebp - 4]
add esp, 0xc
mov esi, dword [ebp - 8]
inc edi
inc esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
cmp edi, dword [ebp - 0x30]
jl 0x416c6a
push ebx
call fcn.0041438a
pop ecx
test eax, eax
je 0x416c6a
push 0xd
call fcn.0041238e
pop ecx
mov dword [ebp - 0xc], 0xffffff22
cmp edi, esi
jne 0x416c7c
mov ecx, edi
sub ecx, dword [ebp - 0x14]
jmp 0x416cc8
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.0040dced
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, eax
cdq
sub ecx, esi
sub eax, edx
add ecx, edi
sar eax, 1
cmp ecx, eax
jl 0x416cb1
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, esi
dec ecx
add ecx, eax
inc esi
mov dword [ebp - 0xc], esi
jmp 0x416cc8
mov eax, dword [ebp - 0x14]
mov ecx, edi
sub ecx, esi
add eax, edi
add ecx, dword [ebp - 4]
cmp esi, eax
jne 0x416cc8
mov dword [ebp - 0xc], 0xffffff22
mov esi, dword [ebp - 0x14]
xor edi, edi
push dword [ebp - 0x10]
test ecx, ecx
push dword [ebp - 0x18]
cmovns edi, ecx
add esi, edi
cmp esi, dword [ebp - 8]
cmovg esi, dword [ebp - 8]
call fcn.00410118
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040fbec
add esp, 0x14
cmp dword [ebp - 0xc], 0xffffff22
je 0x4167c5
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.00410118
pop ecx
pop ecx
jmp 0x4167c5
test esi, esi
jle case.0x416767.69
push ebx
call fcn.004144c9
pop ecx
test eax, eax
je case.0x416767.69
mov eax, esi
jmp 0x41774a
call fcn.0040dc77
mov esi, eax
mov eax, 0x85
cmp esi, eax
jg 0x41731f
je 0x41732b
cmp esi, 0x4d
jg 0x417071
je 0x416f65
sub esi, 0x47
je 0x416eac
sub esi, 1
je 0x416e6d
sub esi, 1
je 0x416e50
dec esi
sub esi, 1
jne case.0x416767.69
cmp dword [ebp - 8], esi
jne 0x416dba
push ebx
call fcn.004143ba
pop ecx
test eax, eax
je 0x416dba
mov edi, dword [ebp - 0x24]
test edi, edi
jle 0x416dba
dec edi
mov dword [ebp - 0x24], edi
mov esi, dword [ebp + 8]
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
call fcn.00418090
add esp, 0x10
jmp 0x4167c5
mov esi, dword [ebp - 4]
test esi, esi
jle 0x416e48
push dword [ebp - 0x28]
and dword [ebp - 0x20], 0
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push 2
call fcn.00418090
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0040dced
mov ecx, dword [ebp - 0x18]
add esp, 0x18
dec esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x20], ecx
jg 0x416e3d
push dword [ebp - 0x10]
xor edi, edi
test esi, esi
push ecx
cmovns edi, esi
mov esi, dword [ebp - 0x14]
add esi, edi
cmp esi, dword [ebp - 8]
cmovg esi, dword [ebp - 8]
call fcn.00410118
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040fbec
mov eax, dword [ebp - 0x3c]
add esp, 0x14
cmp eax, 0xffffff22
je 0x4171bf
push dword [ebp - 0x10]
push eax
jmp 0x4171b8
push 0
push 0
call fcn.00432e61
pop ecx
pop ecx
mov esi, dword [ebp + 8]
jmp 0x4171bf
lea eax, [ebp - 0x48]
push eax
push 0
push ebx
call fcn.00413b97
mov edi, dword [ebp - 0x1c]
add esp, 0xc
sub edi, dword [ebp - 0x48]
mov dword [ebp - 0x1c], edi
jmp 0x416da0
xor esi, esi
inc esi
push esi
push ebx
call fcn.00414317
pop ecx
pop ecx
test eax, eax
je 0x416ea4
push ebx
call fcn.00414425
pop ecx
test eax, eax
jne 0x416ea4
cmp dword [ebp - 8], eax
je 0x41764d
push 0
push str.IllegalKey.wav
call fcn.0049b74c
pop ecx
pop ecx
jmp case.0x416767.69
dec dword [ebp - 0x1c]
jmp 0x416da0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push 2
call fcn.00418090
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
jg 0x416f3c
push ebx
call fcn.00414480
pop ecx
test eax, eax
jne 0x416da0
push ebx
call fcn.004140eb
pop ecx
cmp dword [ebp - 0x30], eax
jl 0x416da0
push edi
push 0xffffffffffffffff
push ebx
call fcn.00413cee
push edi
call fcn.004ee800
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x10]
and dword [ebp - 4], 0
cmp esi, eax
mov ecx, dword [ebp - 0x18]
push ecx
mov dword [ebp - 8], eax
cmovg esi, eax
mov dword [ebp - 0x3c], ecx
call fcn.00410118
push 0
push esi
push edi
call fcn.0040fbec
add esp, 0x24
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffff22
je 0x416da0
push dword [ebp - 0x10]
push eax
call fcn.00410118
pop ecx
pop ecx
jmp 0x416da0
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x10]
and dword [ebp - 4], 0
cmp esi, eax
mov ecx, dword [ebp - 0x18]
push ecx
mov dword [ebp - 0x3c], ecx
cmovg esi, eax
call fcn.00410118
push 0
push esi
push edi
call fcn.0040fbec
add esp, 0x14
jmp 0x416f1e
mov esi, dword [ebp - 8]
test esi, esi
jne 0x416f7f
push ebx
call fcn.004143ba
pop ecx
test eax, eax
je 0x416f7f
inc dword [ebp - 0x24]
jmp 0x416da0
cmp dword [ebp - 4], esi
jge 0x416ffc
push dword [ebp - 0x28]
and dword [ebp - 0x20], 0
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push 2
call fcn.00418090
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0040dced
mov ecx, dword [ebp - 0x18]
add esp, 0x18
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
inc edx
mov dword [ebp - 4], edx
lea eax, [ecx - 1]
add eax, esi
cmp dword [ebp - 0x20], eax
jl 0x416ff2
mov eax, edx
sub eax, esi
push 0
pop edi
push dword [ebp - 0x10]
cmovns edi, eax
add esi, edi
cmp esi, dword [ebp - 8]
push ecx
cmovg esi, dword [ebp - 8]
call fcn.00410118
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040fbec
add esp, 0x14
jmp 0x4171bf
call fcn.004330ea
jmp 0x416e48
test esi, esi
jg 0x416e48
push ebx
call fcn.00414480
pop ecx
test eax, eax
jne 0x416e48
push ebx
call fcn.004140eb
pop ecx
cmp dword [ebp - 0x30], eax
jl 0x416e48
push edi
push 0xffffffffffffffff
push ebx
call fcn.00413cee
push edi
call fcn.004ee800
mov edx, dword [ebp - 0x14]
mov ecx, eax
push 0
sub eax, edx
mov dword [ebp - 8], ecx
pop edi
push dword [ebp - 0x10]
cmovns edi, eax
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
lea esi, [edi + edx]
cmp esi, ecx
cmovg esi, ecx
call fcn.00410118
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040fbec
add esp, 0x24
jmp 0x4171bf
sub esi, 0x4f
je 0x41725c
sub esi, 1
je 0x4171e8
sub esi, 1
je 0x4171ce
dec esi
sub esi, 1
jne case.0x416767.69
mov edx, dword [ebp - 4]
test edx, edx
js 0x416da0
mov esi, dword [ebp - 8]
test esi, esi
jle 0x416da0
push ebx
call fcn.00414480
pop ecx
test eax, eax
je 0x4170dc
lea eax, [ebp - 0x34]
xor ecx, ecx
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ecx
push eax
push ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], ecx
call fcn.00414bfb
push ebx
call fcn.004146bf
add esp, 0x10
push ebx
call fcn.00414480
pop ecx
test eax, eax
jne 0x416da0
cmp dword [ebp - 4], esi
jge 0x416da0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x5c]
push 2
call fcn.00418090
push dword [ebp - 4]
push edi
call fcn.0049ff98
add esp, 0x18
dec esi
mov dword [ebp - 8], esi
mov byte [esi + edi], 0
mov edi, dword [ebp - 4]
cmp edi, esi
jl 0x417127
test edi, edi
jle 0x417127
dec edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffff22
push 0
push eax
call fcn.0040dced
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
sub eax, ecx
add edi, eax
mov eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov edx, dword [ebp - 0x18]
sar eax, 1
add eax, edx
lea esi, [edi + 1]
cmp ecx, eax
jg 0x417161
test esi, esi
jle 0x417161
mov esi, edi
jmp 0x417165
dec ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x14]
add eax, edx
cmp ecx, eax
jne 0x417175
mov dword [ebp - 0xc], 0xffffff22
push dword [ebp - 0x10]
xor edi, edi
test esi, esi
push edx
cmovns edi, esi
mov esi, dword [ebp - 0x14]
add esi, edi
cmp esi, dword [ebp - 8]
cmovg esi, dword [ebp - 8]
call fcn.00410118
push dword [ebp - 0x84]
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040fbec
add esp, 0x14
cmp dword [ebp - 0xc], 0xffffff22
je 0x4171bf
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.00410118
pop ecx
pop ecx
xor eax, eax
test eax, eax
je 0x4167c5
jmp 0x416da3
push 0
lea eax, [ebp - 0x48]
push eax
push ebx
call fcn.00413b97
mov edi, dword [ebp - 0x1c]
add esp, 0xc
add edi, dword [ebp - 0x48]
jmp 0x416e65
push 0xffffffffffffffff
push ebx
call fcn.00414317
pop ecx
pop ecx
test eax, eax
je 0x417254
push ebx
call fcn.00414425
pop ecx
test eax, eax
jne 0x417254
cmp dword [ebp - 8], eax
jne 0x416e91
push edi
mov byte [edi], al
call fcn.0049f486
pop ecx
test eax, eax
jne 0x417248
test ebx, ebx
je 0x417248
push ebx
mov dword [0x5a1a28], 1
call fcn.00413c47
push 0x50
mov dword [0x58b4a4], eax
mov eax, dword [ebp - 0x44]
push edi
push 0x5a1978
mov dword [0x58b4a8], eax
call fcn.004a11a5
add esp, 0x10
mov dword [ebp - 0x54], 0x28
jmp 0x4176d1
inc dword [ebp - 0x1c]
jmp 0x416da0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push 2
call fcn.00418090
mov ecx, dword [ebp - 8]
add esp, 0x10
test ecx, ecx
jg 0x4172e3
push ebx
call fcn.00414480
pop ecx
test eax, eax
jne 0x416da0
push ebx
call fcn.004140eb
pop ecx
cmp dword [ebp - 0x30], eax
jl 0x416da0
push edi
push 0xffffffffffffffff
push ebx
call fcn.00413cee
push edi
call fcn.004ee800
mov edx, dword [ebp - 0x14]
mov ecx, eax
push 0
sub eax, edx
mov dword [ebp - 8], ecx
pop edi
push dword [ebp - 0x10]
cmovns edi, eax
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
lea esi, [edi + edx]
cmp esi, ecx
cmovg esi, ecx
call fcn.00410118
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040fbec
add esp, 0x24
jmp 0x416da3
mov edx, dword [ebp - 0x14]
mov eax, ecx
push 0
sub eax, edx
mov dword [ebp - 4], ecx
pop edi
push dword [ebp - 0x10]
cmovns edi, eax
push dword [ebp - 0x18]
lea esi, [edi + edx]
cmp esi, ecx
cmovg esi, ecx
call fcn.00410118
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040fbec
add esp, 0x14
jmp 0x416da3
cmp esi, 0x86
jne case.0x416767.69
lea eax, [esi - 0x7a]
push eax
push ebx
call fcn.004145a8
pop ecx
pop ecx
test eax, eax
je case.0x416767.69
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
call fcn.00418090
mov eax, dword [ebp - 8]
push edi
mov byte [eax + edi], 0
call fcn.0049f486
add esp, 0x14
test eax, eax
jne 0x417393
test ebx, ebx
je 0x417393
push ebx
mov dword [0x5a1a28], 1
call fcn.00413c47
push 0x50
mov dword [0x58b4a4], eax
mov eax, dword [ebp - 0x44]
push edi
push 0x5a1978
mov dword [0x58b4a8], eax
call fcn.004a11a5
add esp, 0x10
push 1
push ebx
call fcn.004157ee
pop ecx
pop ecx
lea eax, [esi - 0xb]
jmp 0x41774a
mov esi, dword [ebp - 4]
test esi, esi
jle case.0x416767.69
push ebx
call fcn.00414480
pop ecx
test eax, eax
je 0x4173e0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.00414bfb
push ebx
call fcn.004146bf
add esp, 0x10
push ebx
call fcn.00414480
pop ecx
test eax, eax
jne case.0x416767.69
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push 2
call fcn.00418090
dec esi
push esi
push edi
mov dword [ebp - 4], esi
call fcn.0049ff98
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 0xc], 0xffffff22
mov dword [ebp - 8], eax
push 0
mov byte [eax + edi], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0040dced
mov eax, dword [ebp - 0x14]
add esp, 0x20
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sub edi, ecx
cdq
add edi, esi
sub eax, edx
mov edx, dword [ebp - 0x18]
sar eax, 1
add eax, edx
lea esi, [edi + 1]
cmp ecx, eax
jg 0x417450
test esi, esi
jle 0x417450
mov esi, edi
jmp 0x417454
dec ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x14]
add eax, edx
cmp ecx, eax
jne 0x417464
mov dword [ebp - 0xc], 0xffffff22
push dword [ebp - 0x10]
xor edi, edi
test esi, esi
push edx
cmovns edi, esi
mov esi, dword [ebp - 0x14]
add esi, edi
cmp esi, dword [ebp - 8]
cmovg esi, dword [ebp - 8]
call fcn.00410118
push dword [ebp - 0x88]
jmp 0x416ce8
cmp dword [ebp - 0x60], 0
mov esi, dword [ebp - 8]
mov byte [esi + edi], 0
je 0x4174b0
test esi, esi
jne 0x4174b0
cmp dword [ebp - 0x64], esi
jne 0x4174b0
cmp dword [ebp - 0x68], esi
je 0x4174b0
push 1
push ebx
call fcn.004153a0
pop ecx
pop ecx
push edi
call fcn.0049f690
pop ecx
test eax, eax
jne 0x4174fc
push edi
call fcn.0049f486
pop ecx
test eax, eax
je 0x4174fc
push 0
push 0xffffffffffffffff
push ebx
call fcn.004152b9
push edi
call fcn.0049e2d6
and dword [ebp - 8], 0
xor edi, edi
push ebx
mov dword [ebp - 4], edi
call fcn.004146bf
push edi
push edi
push dword [ebp - 0x6c]
push 2
call fcn.00418090
mov esi, dword [ebp + 8]
add esp, 0x24
jmp 0x4167c8
push edi
call fcn.0049f690
pop ecx
test eax, eax
je 0x4176ac
call fcn.004ca9ca
sub eax, dword [0x5a1974]
cmp eax, 0x190
jae 0x417699
and dword [ebp - 0x20], 0
lea eax, [ebp - 0xc]
and dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.00413b97
call fcn.004ca9ca
push 0xffffffffffffffff
push ebx
mov dword [0x5a1974], eax
call fcn.0041450f
add esp, 0x14
test eax, eax
je 0x417691
push ebx
call fcn.00413f6e
pop ecx
cmp eax, 3
jl 0x417691
cmp dword [ebp - 0x20], 0
jne 0x417574
cmp dword [ebp - 0xc], 0
je 0x417691
cmp dword [0x5a1a18], 2
jl 0x4176c3
jmp 0x416a9c
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
call fcn.00418090
mov eax, dword [ebp - 8]
push edi
mov byte [eax + edi], 0
call fcn.0049f486
add esp, 0x14
test eax, eax
jne 0x4175fa
test ebx, ebx
je 0x4175fa
cmp esi, 0x42
jne 0x4175cd
push ebx
call fcn.00413cad
pop ecx
cmp eax, 2
jne 0x4175cd
mov dword [0x5a1a2c], 1
jmp 0x4176c3
push ebx
mov dword [0x5a1a28], 1
call fcn.00413c47
push 0x50
mov dword [0x58b4a4], eax
mov eax, dword [ebp - 0x44]
push edi
push 0x5a1978
mov dword [0x58b4a8], eax
call fcn.004a11a5
add esp, 0x10
push 1
push ebx
call fcn.004157ee
pop ecx
pop ecx
lea eax, [esi + 0x35]
jmp 0x41774a
call fcn.004ca9ca
and dword [0x5a1a20], 0
mov dword [0x5a1a1c], eax
jmp 0x417625
inc dword [0x5a1a20]
push ebx
call fcn.00413c47
pop ecx
test eax, eax
jle 0x417641
push 0
push 0
push dword [ebp - 0x58]
push 1
call fcn.00418090
add esp, 0x10
push edi
call fcn.0049e2d6
pop ecx
jmp 0x41772a
push edi
mov byte [edi], 0
call fcn.0049f486
pop ecx
test eax, eax
jne 0x417688
test ebx, ebx
je 0x417688
push ebx
mov dword [0x5a1a28], esi
call fcn.00413c47
push 0x50
mov dword [0x58b4a4], eax
mov eax, dword [ebp - 0x44]
push edi
push 0x5a1978
mov dword [0x58b4a8], eax
call fcn.004a11a5
add esp, 0x10
mov dword [ebp - 0x54], 0x26
jmp 0x4176d1
inc dword [0x5a1a18]
jmp 0x4176c3
call fcn.004ca9ca
and dword [0x5a1a18], 0
mov dword [0x5a1974], eax
jmp 0x4176c3
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x4c]
imul eax, esi, 0x25
cmp ecx, eax
jae 0x4176c3
push 1
push ebx
call fcn.004153a0
pop ecx
pop ecx
push 0xd
jmp 0x416572
push edi
call fcn.0049e2d6
pop ecx
push 1
push ebx
call fcn.004157ee
mov eax, dword [ebp - 0x54]
pop ecx
pop ecx
jmp 0x41774a
mov eax, dword [ebp - 8]
push esi
mov byte [eax + esi], 0
call fcn.0049f486
pop ecx
test eax, eax
jne 0x417723
test ebx, ebx
je 0x417723
push ebx
mov dword [0x5a1a28], 1
call fcn.00413c47
push 0x50
mov dword [0x58b4a4], eax
mov eax, dword [ebp - 0x44]
push esi
push 0x5a1978
mov dword [0x58b4a8], eax
call fcn.004a11a5
add esp, 0x10
mov dword [ebp - 0x74], 0x92
push 1
push ebx
call fcn.004157ee
mov eax, dword [ebp - 0x74]
pop ecx
pop ecx
jmp 0x41774a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], 0
jmp 0x4176c3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret