Function at 0x40655d
Capabilities:
Print debug messages

Disassembly:
push 0x180
mov eax, 0x4ca71b
call fcn.004a9047
mov esi, ecx
mov dword [ebp - 0x17c], esi
lea eax, [ebp - 0xe4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004111b0
push ebx
lea edi, [ebp - 0x16c]
mov byte [ebp - 4], 1
call fcn.004149f0
mov eax, edi
push eax
lea eax, [ebp + 8]
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 2
call fcn.004112c0
test al, al
jne 0x4065e4
push 1
mov ebx, esi
call fcn.00406028
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 1
call fcn.00414d20
lea eax, [ebp - 0xe4]
call fcn.00406cc0
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004030d9
xor al, al
jmp 0x406cb8
push ebx
push 0x4e8539
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], 0
call fcn.0040311d
mov esi, str.input_id
push esi
lea eax, [ebp - 0x16c]
push eax
mov byte [ebp - 4], 3
call fcn.00415640
cmp byte [eax + 8], 0
je 0x40664e
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
lea esi, [ebp - 0x2c]
mov ecx, eax
call fcn.00414e90
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00402eb2
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004030d9
mov edi, dword [ebp - 0x17c]
lea eax, [edi + 0x3fc]
push eax
lea ecx, [ebp - 0x48]
call fcn.00409cb2
test eax, eax
je 0x406692
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004030d9
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 1
call fcn.00414d20
lea eax, [ebp - 0xe4]
call fcn.00406cc0
push ebx
jmp 0x4065d3
mov esi, str.code
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
cmp byte [eax + 8], 0
je 0x4066c2
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
mov ecx, eax
call fcn.00414fa0
cmp eax, ebx
je 0x4066ef
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x4066ce
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
mov ebx, edi
call fcn.00406028
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.004030d9
jmp 0x4065b7
mov eax, edi
mov dword [edi + 0x41c], 3
call fcn.00407b4c
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], ebx
mov esi, str.position
push esi
lea eax, [ebp - 0x16c]
push eax
mov byte [ebp - 4], 5
call fcn.00415640
cmp byte [eax + 8], 0
je 0x40688b
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
mov dword [ebp - 0x14c], eax
call fcn.00415ca0
test al, al
je 0x40688b
lea eax, [ebp - 0x144]
push eax
call fcn.00404529
mov ecx, dword [ebp - 0x14c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x148], ebx
call fcn.004152c0
test eax, eax
je 0x40687c
mov ebx, dword [ebp - 0x154]
push dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
call fcn.004155a0
mov esi, eax
call fcn.00415ca0
test al, al
je 0x406821
mov ecx, esi
call fcn.004152c0
cmp eax, 4
jne 0x406821
push esi
xor ecx, ecx
call fcn.004155a0
push eax
xor ecx, ecx
call fcn.004155a0
mov ecx, eax
call fcn.00414fa0
push esi
xor ecx, ecx
mov ebx, eax
call fcn.004155a0
xor ecx, ecx
push eax
inc ecx
call fcn.004155a0
mov ecx, eax
call fcn.00414fa0
push esi
push 2
pop ecx
mov dword [ebp - 0x150], eax
call fcn.004155a0
push eax
xor ecx, ecx
call fcn.004155a0
mov ecx, eax
call fcn.00414fa0
push esi
push 2
pop ecx
mov dword [ebp - 0x174], eax
call fcn.004155a0
xor ecx, ecx
push eax
inc ecx
call fcn.004155a0
mov ecx, eax
call fcn.00414fa0
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ebx
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x144]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x144]
lea esi, [ebp - 0x18c]
call fcn.00407d56
mov ecx, dword [ebp - 0x14c]
inc dword [ebp - 0x148]
call fcn.004152c0
cmp dword [ebp - 0x148], eax
jb 0x406781
xor ebx, ebx
lea esi, [ebp - 0x144]
mov byte [ebp - 4], 5
call fcn.00406cf9
mov esi, str.texts
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
cmp byte [eax + 8], 0
je 0x406970
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
mov ecx, eax
mov dword [ebp - 0x150], ecx
call fcn.00415ca0
test al, al
je 0x406970
xor edi, edi
call fcn.004152c0
test eax, eax
je 0x406970
mov ecx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x188]
sub eax, ecx
push 0x60
cdq
pop esi
idiv esi
add ecx, 0x10
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x158], eax
push dword [ebp - 0x150]
mov ecx, edi
call fcn.004155a0
lea esi, [ebp - 0x64]
mov ecx, eax
call fcn.00414e90
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 7
call fcn.0040a5dc
pop ecx
pop ecx
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.004030d9
cmp edi, dword [ebp - 0x158]
jae 0x40694a
mov ecx, dword [ebp - 0x148]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00402f03
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004030d9
mov ecx, dword [ebp - 0x150]
add dword [ebp - 0x148], 0x60
inc edi
call fcn.004152c0
cmp edi, eax
jb 0x4068fb
mov esi, str.translation
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
cmp byte [eax + 8], 0
je 0x406a55
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
mov ecx, eax
mov dword [ebp - 0x150], ecx
call fcn.00415ca0
test al, al
je 0x406a55
xor edi, edi
call fcn.004152c0
test eax, eax
je 0x406a55
mov ecx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x188]
sub eax, ecx
push 0x60
cdq
pop esi
idiv esi
add ecx, 0x2c
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x158], eax
push dword [ebp - 0x150]
mov ecx, edi
call fcn.004155a0
lea esi, [ebp - 0x64]
mov ecx, eax
call fcn.00414e90
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040a5dc
pop ecx
pop ecx
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.004030d9
cmp edi, dword [ebp - 0x158]
jae 0x406a2f
mov ecx, dword [ebp - 0x148]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00402f03
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004030d9
mov ecx, dword [ebp - 0x150]
add dword [ebp - 0x148], 0x60
inc edi
call fcn.004152c0
cmp edi, eax
jb 0x4069e0
mov edi, str.lineHeight
push edi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
cmp byte [eax + 8], 0
je 0x406c0b
push edi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
mov ecx, eax
mov dword [ebp - 0x170], ecx
call fcn.00415ca0
test al, al
je 0x406c0b
mov dword [ebp - 0x148], ebx
call fcn.004152c0
test eax, eax
je 0x406c0b
mov esi, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x188]
sub eax, esi
push 0x60
cdq
pop ecx
idiv ecx
add esi, 0x48
mov dword [ebp - 0x158], eax
push dword [ebp - 0x170]
mov ecx, dword [ebp - 0x148]
call fcn.004155a0
mov ecx, eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], ecx
cmp eax, dword [ebp - 0x158]
jae 0x406beb
mov dword [ebp - 0x150], ebx
call fcn.004152c0
mov ecx, dword [ebp - 0x14c]
mov dword [esi], eax
mov dword [ebp - 0x15c], ebx
call fcn.004152c0
test eax, eax
je 0x406bd1
push dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x15c]
call fcn.004155a0
mov ecx, eax
call fcn.00414fa0
mov edi, eax
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x178], edi
cmp ecx, eax
jae 0x406b75
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x178]
cmp ecx, edx
ja 0x406b75
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0xc]
jne 0x406b62
lea eax, [esi + 4]
call fcn.00407eb8
mov eax, dword [esi + 4]
lea ecx, [eax + edi*4]
mov eax, dword [esi + 8]
test eax, eax
je 0x406b8b
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x406b8b
cmp eax, dword [esi + 0xc]
jne 0x406b82
lea eax, [esi + 4]
call fcn.00407eb8
mov eax, dword [esi + 8]
test eax, eax
je 0x406b8b
mov dword [eax], edi
push dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x15c]
add dword [esi + 8], 4
call fcn.004155a0
mov ecx, eax
call fcn.00414fa0
add dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x14c]
inc dword [ebp - 0x15c]
call fcn.004152c0
cmp dword [ebp - 0x15c], eax
jb 0x406b14
mov edi, str.lineHeight
xor ebx, ebx
mov ecx, dword [ebp - 0x14c]
call fcn.004152c0
mov ecx, eax
mov eax, dword [ebp - 0x150]
xor edx, edx
div ecx
mov dword [esi + 0x14], eax
mov ecx, dword [ebp - 0x170]
inc dword [ebp - 0x148]
add esi, 0x60
call fcn.004152c0
cmp dword [ebp - 0x148], eax
jb 0x406ac3
push str.texts
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
mov ecx, eax
call fcn.004152c0
push str.translation
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
mov ecx, eax
call fcn.004152c0
push edi
lea eax, [ebp - 0x16c]
push eax
call fcn.00415640
mov ecx, eax
call fcn.004152c0
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x170], esp
push eax
lea ecx, [ebp - 0x18c]
call fcn.00407cc1
mov ecx, dword [ebp - 0x17c]
call fcn.00406e60
mov ecx, dword [ebp - 0x17c]
push ebx
call fcn.00405ee3
lea edi, [ebp - 0x18c]
call fcn.00407fa4
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004030d9
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 1
call fcn.00414d20
lea eax, [ebp - 0xe4]
call fcn.00406cc0
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004030d9
call fcn.004a9091
ret 0x1c