Function at 0x414736
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 [0x5670dc]
jne 0x414789
test ebx, ebx
jne 0x4147b5
mov dword [0x56702c], ecx
mov dword [0x5670d0], ecx
mov dword [0x5670d4], ecx
mov dword [0x5670d8], ecx
mov dword [0x5670dc], ebx
mov dword [0x5670e4], ecx
test ebx, ebx
je 0x415a36
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push ebx
call fcn.00412418
push ebx
call fcn.0041221f
push ebx
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], al
mov byte [ebp - 0x7c], al
call fcn.004121e0
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.004124a8
add esp, 0x44
push ebx
call fcn.004125c4
push ebx
mov dword [ebp - 0x8c], eax
call fcn.004122b2
mov ecx, eax
and eax, 0x20
and ecx, 0x4e
mov dword [ebp - 0x60], eax
push ebx
mov dword [ebp - 0x80], ecx
call fcn.004143c6
push 0
push ebx
mov dword [ebp - 0x68], eax
call fcn.0041368e
add esp, 0x14
cmp dword [0x5670e4], 0
je 0x414866
mov eax, dword [ebp + 8]
push eax
call fcn.0048b21b
and dword [0x5670e4], 0
pop ecx
push 0x77
pop eax
jmp 0x415a38
cmp dword [0x5670e0], 0
je 0x41489d
cmp dword [0x5524a4], 0
jl 0x41489d
cmp dword [0x5524a8], 0
jle 0x41489d
push ebx
call fcn.00411f35
pop ecx
cmp dword [0x5524a4], eax
jne 0x41489d
cmp dword [0x5524a8], esi
jne 0x41489d
xor esi, esi
inc esi
jmp 0x41489f
xor esi, esi
mov edi, dword [ebp + 8]
test edi, edi
je 0x415a36
cmp dword [ebp - 0x14], 0
je 0x415a36
cmp dword [ebp - 0x30], 0
je 0x415a36
test esi, esi
jne 0x4148f5
and dword [0x5670e0], esi
or dword [0x5524a4], 0xffffffff
or dword [0x5524a8], 0xffffffff
push 0x567030
call fcn.0048c473
pop ecx
test eax, eax
jne 0x4148f5
push 0x50
push eax
push 0x567030
call fcn.004c37f0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ca28
mov eax, dword [ebp - 0x30]
inc eax
push eax
push 0
push edi
call fcn.004c37f0
xor edx, edx
add esp, 0x14
and dword [ebp - 4], edx
mov dword [ebp - 8], edx
test esi, esi
je 0x4149be
xor ecx, ecx
cmp byte [0x567030], cl
je 0x41495f
mov ebx, dword [ebp - 0x30]
sub edi, 0x567030
cmp ecx, dword [0x5524a8]
jge 0x414959
cmp ecx, ebx
jge 0x414959
mov al, byte [ecx + 0x567030]
inc edx
mov byte [edi + ecx + 0x567030], al
inc ecx
cmp byte [ecx + 0x567030], 0
jne 0x414935
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.0040e96c
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.0040e497
and dword [0x5670e0], 0
or dword [0x5524a4], 0xffffffff
or dword [0x5524a8], 0xffffffff
push 0x50
push 0
push 0x567030
call fcn.004c37f0
mov edi, dword [ebp + 8]
add esp, 0x20
and dword [ebp - 0x64], 0
call fcn.004b729a
cmp dword [0x53e324], 0
mov dword [ebp - 0x70], eax
je 0x415a27
mov dword [ebp - 0x54], 0x1b
mov dword [ebp - 0x74], 0x76
call fcn.0040d59e
mov dword [ebp - 0x20], eax
test eax, eax
je case.0x414a55.69
call fcn.004b729a
mov dword [ebp - 0x70], eax
call fcn.0040c9b2
mov esi, eax
mov dword [ebp - 0xc], eax
cmp esi, 0x1b
je 0x4159b8
cmp esi, 0xd
je 0x415779
cmp esi, 0xa
je 0x415779
cmp esi, 8
je 0x415693
cmp esi, 0xe0
je 0x415025
test esi, esi
jne 0x414da0
call fcn.0040c9b2
mov esi, eax
lea eax, [esi - 0x3b]
cmp eax, 0x18
ja case.0x414a55.69
movzx ecx, byte [eax + 0x415a7a]
jmp dword [ecx*4 + 0x415a3e]
push ebx
call fcn.00411f9b
pop ecx
cmp eax, 1
jne case.0x414a55.67
push 0xa
pop esi
mov dword [ebp - 0xc], esi
jmp 0x414a07
push 0x2e
jmp 0x414a6a
push 0x30
jmp 0x414a6a
push 0x31
jmp 0x414a6a
push 0x32
jmp 0x414a6a
push 0x33
jmp 0x414a6a
push 0x34
jmp 0x414a6a
push 0x35
jmp 0x414a6a
push 0x36
jmp 0x414a6a
push 0x37
jmp 0x414a6a
push 0x38
jmp 0x414a6a
push 0x39
jmp 0x414a6a
lea eax, [esi - 0x3a]
push eax
push ebx
call fcn.00412896
pop ecx
pop ecx
test eax, eax
jne 0x415874
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
test ebx, ebx
je 0x414c1e
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x414b6f
add dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.00412ee9
push ebx
call fcn.004129ad
push ebx
call fcn.0041276e
add esp, 0x14
test eax, eax
jne 0x414b6b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ca28
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xffffff22
push 0
push eax
call fcn.0040ca28
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 0x414b28
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.0040e96c
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [edi + esi]
push eax
call fcn.0040e497
add esp, 0x14
cmp dword [ebp - 0x24], 0xffffff22
je 0x414b6b
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call fcn.0040e96c
pop ecx
pop ecx
and dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x414c1e
add dword [ebp - 0x38], edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.00412ee9
push ebx
call fcn.004129ad
push ebx
call fcn.0041276e
add esp, 0x14
test eax, eax
jne 0x414c1a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ca28
lea eax, [ebp - 0x1c]
mov edi, 0xffffff22
push 0
push eax
mov dword [ebp - 0x1c], edi
call fcn.0040ca28
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 0x414bd7
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.0040e96c
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [edi + esi]
push eax
call fcn.0040e497
add esp, 0x14
cmp dword [ebp - 0x1c], 0xffffff22
je 0x414c1a
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.0040e96c
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
call fcn.0040d29e
test eax, eax
je 0x414c37
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040c9b2
push 0
push ebx
call fcn.00413adc
mov edi, dword [ebp - 0x8c]
pop ecx
pop ecx
test edi, edi
je 0x414c5b
call fcn.004b729a
sub eax, dword [ebp - 0x70]
cmp eax, edi
ja 0x4159ce
push 0x76
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x414c76
and dword [0x5670d8], 0
and dword [0x5670d4], 0
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x53e324], 0
je 0x415a27
mov edi, dword [ebp + 8]
jmp 0x4149e5
cmp dword [ebp - 8], 0
jle 0x414d38
push edi
push 0xffffffffffffffff
push ebx
call fcn.00411fdc
add esp, 0xc
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0040ca28
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
cmp eax, dword [ebp - 0x18]
jle 0x414cd7
push 1
push dword [ebp - 0x7c]
call fcn.0042ace5
cmp dword [0x53e324], 0
pop ecx
pop ecx
jne 0x414ca9
and dword [ebp - 4], 0
push edi
call fcn.004cd280
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.0040e96c
push esi
push edi
call fcn.0040e4af
mov eax, dword [ebp - 0x20]
add esp, 0x14
cmp eax, 0xffffff22
je 0x414d17
push dword [ebp - 0x10]
push eax
call fcn.0040e96c
pop ecx
pop ecx
push edi
call fcn.0048b21b
and dword [ebp - 8], 0
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
call fcn.0041637e
add esp, 0x14
jmp case.0x414a55.69
call fcn.004b729a
mov ecx, dword [0x5670d4]
sub eax, ecx
cmp eax, 0x3e8
jb 0x414d54
test ecx, ecx
jne 0x4158fa
call fcn.004b729a
push ebx
mov dword [0x5670d4], eax
call fcn.00411f35
pop ecx
test eax, eax
jne 0x41590d
push ebx
call fcn.0041225c
pop ecx
cmp eax, 3
jl 0x41590d
cmp dword [0x5670d8], 1
jl 0x41592f
push 0
push 0
push dword [ebp - 0x50]
push 1
call fcn.0041637e
add esp, 0x10
jmp case.0x414a55.69
cmp esi, 0x20
jl 0x415007
cmp esi, 0x7e
jg case.0x414a55.69
mov dword [ebp - 0x64], 1
cmp esi, 0x3d
jne 0x414dcb
cmp dword [ebp - 0x80], 0
push 0x2b
pop eax
cmovne esi, eax
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x4c], 0
je 0x414dd7
cmp dword [ebp - 8], 0
jne 0x414ddd
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x60], 0
je 0x414e98
push esi
call fcn.0048c375
pop ecx
test eax, eax
jne 0x414e19
push esi
call fcn.0048c6ef
pop ecx
test eax, eax
je case.0x414a55.69
mov eax, dword [ebp - 8]
push edi
mov byte [eax + edi], 0
call fcn.0048c30a
pop ecx
test eax, eax
je case.0x414a55.69
jmp 0x414e63
and dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 8]
test ecx, ecx
jle 0x414e66
mov esi, dword [ebp - 0x3c]
mov ebx, ecx
movsx eax, byte [esi + edi]
push eax
call fcn.0048c6ef
pop ecx
test eax, eax
je 0x414e55
push esi
push edi
mov byte [ebx + edi], 0
call fcn.0048cb84
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 0x414e29
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 0x414e98
mov eax, dword [ebp - 0x44]
dec eax
cmp edx, eax
jl 0x414e98
cmp ecx, edx
jl 0x414e98
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x4c]
imul eax, ecx, 0x25
cmp edx, eax
jae 0x414e98
push 1
push ebx
call fcn.0041368e
push 0xd
call fcn.004106f2
add esp, 0xc
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 8], eax
jge 0x414ed7
call fcn.0040d59e
test eax, eax
jne 0x414ed7
cmp dword [ebp - 0x68], eax
je 0x414eb3
cmp dword [ebp - 8], eax
je 0x414ed7
push esi
call fcn.0048c355
pop ecx
push 0
test eax, eax
je 0x414ec7
push 0
push dword [ebp - 0x28]
jmp 0x414ecd
push dword [ebp - 0x28]
push dword [ebp - 0x78]
push 5
call fcn.0041637e
add esp, 0x10
push ebx
call fcn.0041276e
pop ecx
test eax, eax
je 0x414f09
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.00412ee9
push ebx
call fcn.004129ad
add esp, 0x10
push ebx
call fcn.0041276e
pop ecx
test eax, eax
jne case.0x414a55.69
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 8], eax
jge case.0x414a55.69
mov edx, dword [ebp - 4]
push edx
push esi
push edi
call fcn.0048c19c
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 0x414f58
push ebx
call fcn.00412678
pop ecx
test eax, eax
je 0x414f58
push 0xd
call fcn.004106f2
pop ecx
mov dword [ebp - 0xc], 0xffffff22
cmp edi, esi
jne 0x414f6a
mov ecx, edi
sub ecx, dword [ebp - 0x14]
jmp 0x414fb6
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.0040ca28
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 0x414f9f
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, esi
dec ecx
add ecx, eax
inc esi
mov dword [ebp - 0xc], esi
jmp 0x414fb6
mov eax, dword [ebp - 0x14]
mov ecx, edi
sub ecx, esi
add eax, edi
add ecx, dword [ebp - 4]
cmp esi, eax
jne 0x414fb6
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.0040e96c
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040e497
add esp, 0x14
cmp dword [ebp - 0xc], 0xffffff22
je 0x414ab3
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.0040e96c
pop ecx
pop ecx
jmp 0x414ab3
test esi, esi
jle case.0x414a55.69
push ebx
call fcn.004127b7
pop ecx
test eax, eax
je case.0x414a55.69
mov eax, esi
jmp 0x415a38
call fcn.0040c9b2
mov esi, eax
mov eax, 0x85
cmp esi, eax
jg 0x41560d
je 0x415619
cmp esi, 0x4d
jg 0x41535f
je 0x415253
sub esi, 0x47
je 0x41519a
sub esi, 1
je 0x41515b
sub esi, 1
je 0x41513e
dec esi
sub esi, 1
jne case.0x414a55.69
cmp dword [ebp - 8], esi
jne 0x4150a8
push ebx
call fcn.004126a8
pop ecx
test eax, eax
je 0x4150a8
mov edi, dword [ebp - 0x24]
test edi, edi
jle 0x4150a8
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.0041637e
add esp, 0x10
jmp 0x414ab3
mov esi, dword [ebp - 4]
test esi, esi
jle 0x415136
push dword [ebp - 0x28]
and dword [ebp - 0x20], 0
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push 2
call fcn.0041637e
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0040ca28
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 0x41512b
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.0040e96c
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040e497
mov eax, dword [ebp - 0x3c]
add esp, 0x14
cmp eax, 0xffffff22
je 0x4154ad
push dword [ebp - 0x10]
push eax
jmp 0x4154a6
push 0
push 0
call fcn.0042ace5
pop ecx
pop ecx
mov esi, dword [ebp + 8]
jmp 0x4154ad
lea eax, [ebp - 0x48]
push eax
push 0
push ebx
call fcn.00411e85
mov edi, dword [ebp - 0x1c]
add esp, 0xc
sub edi, dword [ebp - 0x48]
mov dword [ebp - 0x1c], edi
jmp 0x41508e
xor esi, esi
inc esi
push esi
push ebx
call fcn.00412605
pop ecx
pop ecx
test eax, eax
je 0x415192
push ebx
call fcn.00412713
pop ecx
test eax, eax
jne 0x415192
cmp dword [ebp - 8], eax
je 0x41593b
push 0
push str.IllegalKey.wav
call fcn.0048847c
pop ecx
pop ecx
jmp case.0x414a55.69
dec dword [ebp - 0x1c]
jmp 0x41508e
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push 2
call fcn.0041637e
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
jg 0x41522a
push ebx
call fcn.0041276e
pop ecx
test eax, eax
jne 0x41508e
push ebx
call fcn.004123d9
pop ecx
cmp dword [ebp - 0x30], eax
jl 0x41508e
push edi
push 0xffffffffffffffff
push ebx
call fcn.00411fdc
push edi
call fcn.004cd280
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.0040e96c
push 0
push esi
push edi
call fcn.0040e497
add esp, 0x24
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffff22
je 0x41508e
push dword [ebp - 0x10]
push eax
call fcn.0040e96c
pop ecx
pop ecx
jmp 0x41508e
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.0040e96c
push 0
push esi
push edi
call fcn.0040e497
add esp, 0x14
jmp 0x41520c
mov esi, dword [ebp - 8]
test esi, esi
jne 0x41526d
push ebx
call fcn.004126a8
pop ecx
test eax, eax
je 0x41526d
inc dword [ebp - 0x24]
jmp 0x41508e
cmp dword [ebp - 4], esi
jge 0x4152ea
push dword [ebp - 0x28]
and dword [ebp - 0x20], 0
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push 2
call fcn.0041637e
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0040ca28
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 0x4152e0
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.0040e96c
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040e497
add esp, 0x14
jmp 0x4154ad
call fcn.0042af6e
jmp 0x415136
test esi, esi
jg 0x415136
push ebx
call fcn.0041276e
pop ecx
test eax, eax
jne 0x415136
push ebx
call fcn.004123d9
pop ecx
cmp dword [ebp - 0x30], eax
jl 0x415136
push edi
push 0xffffffffffffffff
push ebx
call fcn.00411fdc
push edi
call fcn.004cd280
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.0040e96c
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040e497
add esp, 0x24
jmp 0x4154ad
sub esi, 0x4f
je 0x41554a
sub esi, 1
je 0x4154d6
sub esi, 1
je 0x4154bc
dec esi
sub esi, 1
jne case.0x414a55.69
mov edx, dword [ebp - 4]
test edx, edx
js 0x41508e
mov esi, dword [ebp - 8]
test esi, esi
jle 0x41508e
push ebx
call fcn.0041276e
pop ecx
test eax, eax
je 0x4153ca
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.00412ee9
push ebx
call fcn.004129ad
add esp, 0x10
push ebx
call fcn.0041276e
pop ecx
test eax, eax
jne 0x41508e
cmp dword [ebp - 4], esi
jge 0x41508e
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x5c]
push 2
call fcn.0041637e
push dword [ebp - 4]
push edi
call fcn.0048cb84
add esp, 0x18
dec esi
mov dword [ebp - 8], esi
mov byte [esi + edi], 0
mov edi, dword [ebp - 4]
cmp edi, esi
jl 0x415415
test edi, edi
jle 0x415415
dec edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffff22
push 0
push eax
call fcn.0040ca28
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 0x41544f
test esi, esi
jle 0x41544f
mov esi, edi
jmp 0x415453
dec ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x14]
add eax, edx
cmp ecx, eax
jne 0x415463
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.0040e96c
push dword [ebp - 0x84]
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040e497
add esp, 0x14
cmp dword [ebp - 0xc], 0xffffff22
je 0x4154ad
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.0040e96c
pop ecx
pop ecx
xor eax, eax
test eax, eax
je 0x414ab3
jmp 0x415091
push 0
lea eax, [ebp - 0x48]
push eax
push ebx
call fcn.00411e85
mov edi, dword [ebp - 0x1c]
add esp, 0xc
add edi, dword [ebp - 0x48]
jmp 0x415153
push 0xffffffffffffffff
push ebx
call fcn.00412605
pop ecx
pop ecx
test eax, eax
je 0x415542
push ebx
call fcn.00412713
pop ecx
test eax, eax
jne 0x415542
cmp dword [ebp - 8], eax
jne 0x41517f
push edi
mov byte [edi], al
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x415536
test ebx, ebx
je 0x415536
push ebx
mov dword [0x5670e0], 1
call fcn.00411f35
push 0x50
mov dword [0x5524a4], eax
mov eax, dword [ebp - 0x44]
push edi
push 0x567030
mov dword [0x5524a8], eax
call fcn.0048dd2a
add esp, 0x10
mov dword [ebp - 0x54], 0x28
jmp 0x4159bf
inc dword [ebp - 0x1c]
jmp 0x41508e
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push 2
call fcn.0041637e
mov ecx, dword [ebp - 8]
add esp, 0x10
test ecx, ecx
jg 0x4155d1
push ebx
call fcn.0041276e
pop ecx
test eax, eax
jne 0x41508e
push ebx
call fcn.004123d9
pop ecx
cmp dword [ebp - 0x30], eax
jl 0x41508e
push edi
push 0xffffffffffffffff
push ebx
call fcn.00411fdc
push edi
call fcn.004cd280
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.0040e96c
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040e497
add esp, 0x24
jmp 0x415091
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.0040e96c
push 0
sub esi, edi
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + edi]
push eax
call fcn.0040e497
add esp, 0x14
jmp 0x415091
cmp esi, 0x86
jne case.0x414a55.69
lea eax, [esi - 0x7a]
push eax
push ebx
call fcn.00412896
pop ecx
pop ecx
test eax, eax
je case.0x414a55.69
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
call fcn.0041637e
mov eax, dword [ebp - 8]
push edi
mov byte [eax + edi], 0
call fcn.0048c30a
add esp, 0x14
test eax, eax
jne 0x415681
test ebx, ebx
je 0x415681
push ebx
mov dword [0x5670e0], 1
call fcn.00411f35
push 0x50
mov dword [0x5524a4], eax
mov eax, dword [ebp - 0x44]
push edi
push 0x567030
mov dword [0x5524a8], eax
call fcn.0048dd2a
add esp, 0x10
push 1
push ebx
call fcn.00413adc
pop ecx
pop ecx
lea eax, [esi - 0xb]
jmp 0x415a38
mov esi, dword [ebp - 4]
test esi, esi
jle case.0x414a55.69
push ebx
call fcn.0041276e
pop ecx
test eax, eax
je 0x4156ce
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.00412ee9
push ebx
call fcn.004129ad
add esp, 0x10
push ebx
call fcn.0041276e
pop ecx
test eax, eax
jne case.0x414a55.69
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push 2
call fcn.0041637e
dec esi
push esi
push edi
mov dword [ebp - 4], esi
call fcn.0048cb84
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.0040ca28
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 0x41573e
test esi, esi
jle 0x41573e
mov esi, edi
jmp 0x415742
dec ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x14]
add eax, edx
cmp ecx, eax
jne 0x415752
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.0040e96c
push dword [ebp - 0x88]
jmp 0x414fd6
cmp dword [ebp - 0x60], 0
mov esi, dword [ebp - 8]
mov byte [esi + edi], 0
je 0x41579e
test esi, esi
jne 0x41579e
cmp dword [ebp - 0x64], esi
jne 0x41579e
cmp dword [ebp - 0x68], esi
je 0x41579e
push 1
push ebx
call fcn.0041368e
pop ecx
pop ecx
push edi
call fcn.0048c473
pop ecx
test eax, eax
jne 0x4157ea
push edi
call fcn.0048c30a
pop ecx
test eax, eax
je 0x4157ea
push 0
push 0xffffffffffffffff
push ebx
call fcn.004135a7
push edi
call fcn.0048b21b
and dword [ebp - 8], 0
xor edi, edi
push ebx
mov dword [ebp - 4], edi
call fcn.004129ad
push edi
push edi
push dword [ebp - 0x6c]
push 2
call fcn.0041637e
mov esi, dword [ebp + 8]
add esp, 0x24
jmp 0x414ab6
push edi
call fcn.0048c473
pop ecx
test eax, eax
je 0x41599a
call fcn.004b729a
sub eax, dword [0x56702c]
cmp eax, 0x190
jae 0x415987
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.00411e85
call fcn.004b729a
push 0xffffffffffffffff
push ebx
mov dword [0x56702c], eax
call fcn.004127fd
add esp, 0x14
test eax, eax
je 0x41597f
push ebx
call fcn.0041225c
pop ecx
cmp eax, 3
jl 0x41597f
cmp dword [ebp - 0x20], 0
jne 0x415862
cmp dword [ebp - 0xc], 0
je 0x41597f
cmp dword [0x5670d0], 2
jl 0x4159b1
jmp 0x414d8a
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
call fcn.0041637e
mov eax, dword [ebp - 8]
push edi
mov byte [eax + edi], 0
call fcn.0048c30a
add esp, 0x14
test eax, eax
jne 0x4158e8
test ebx, ebx
je 0x4158e8
cmp esi, 0x42
jne 0x4158bb
push ebx
call fcn.00411f9b
pop ecx
cmp eax, 2
jne 0x4158bb
mov dword [0x5670e4], 1
jmp 0x4159b1
push ebx
mov dword [0x5670e0], 1
call fcn.00411f35
push 0x50
mov dword [0x5524a4], eax
mov eax, dword [ebp - 0x44]
push edi
push 0x567030
mov dword [0x5524a8], eax
call fcn.0048dd2a
add esp, 0x10
push 1
push ebx
call fcn.00413adc
pop ecx
pop ecx
lea eax, [esi + 0x35]
jmp 0x415a38
call fcn.004b729a
and dword [0x5670d8], 0
mov dword [0x5670d4], eax
jmp 0x415913
inc dword [0x5670d8]
push ebx
call fcn.00411f35
pop ecx
test eax, eax
jle 0x41592f
push 0
push 0
push dword [ebp - 0x58]
push 1
call fcn.0041637e
add esp, 0x10
push edi
call fcn.0048b21b
pop ecx
jmp 0x415a18
push edi
mov byte [edi], 0
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x415976
test ebx, ebx
je 0x415976
push ebx
mov dword [0x5670e0], esi
call fcn.00411f35
push 0x50
mov dword [0x5524a4], eax
mov eax, dword [ebp - 0x44]
push edi
push 0x567030
mov dword [0x5524a8], eax
call fcn.0048dd2a
add esp, 0x10
mov dword [ebp - 0x54], 0x26
jmp 0x4159bf
inc dword [0x5670d0]
jmp 0x4159b1
call fcn.004b729a
and dword [0x5670d0], 0
mov dword [0x56702c], eax
jmp 0x4159b1
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x4c]
imul eax, esi, 0x25
cmp ecx, eax
jae 0x4159b1
push 1
push ebx
call fcn.0041368e
pop ecx
pop ecx
push 0xd
jmp 0x414860
push edi
call fcn.0048b21b
pop ecx
push 1
push ebx
call fcn.00413adc
mov eax, dword [ebp - 0x54]
pop ecx
pop ecx
jmp 0x415a38
mov eax, dword [ebp - 8]
push esi
mov byte [eax + esi], 0
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x415a11
test ebx, ebx
je 0x415a11
push ebx
mov dword [0x5670e0], 1
call fcn.00411f35
push 0x50
mov dword [0x5524a4], eax
mov eax, dword [ebp - 0x44]
push esi
push 0x567030
mov dword [0x5524a8], eax
call fcn.0048dd2a
add esp, 0x10
mov dword [ebp - 0x74], 0x92
push 1
push ebx
call fcn.00413adc
mov eax, dword [ebp - 0x74]
pop ecx
pop ecx
jmp 0x415a38
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], 0
jmp 0x4159b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret