Function at 0x470320
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d65eb
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x63a800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
mov eax, dword [esi + 0x138]
sub eax, dword [esi + 0x134]
mov dword [ebp - 0x138], esi
sar eax, 2
mov dword [esi + 0x14c], eax
test eax, eax
je 0x470d41
push 0x17
lea eax, [ebp - 0xf0]
push eax
push 1
mov ecx, esi
mov dword [ebp - 0xf0], 0x1c
mov dword [ebp - 0xec], 0x14
call fcn.0048b669
push 0x31
lea ecx, [ebp - 0x4f]
push 0
push ecx
mov byte [ebp - 0x50], 0
call fcn.005afd80
add esp, 0xc
cmp ebx, 9
ja case.default.0x4703b8
jmp dword [ebx*4 + 0x470d60]
mov edx, dword [esi + 0x154]
mov edi, dword [esi + 0x14c]
xor eax, eax
xor ecx, ecx
inc edx
cmp eax, ecx
jb 0x4703dd
ja 0x4703da
cmp edx, edi
jb 0x4703dd
dec edi
jmp 0x4703df
mov edi, edx
push edi
push 0x60f27c
lea edx, [ebp - 0x50]
push edx
call fcn.005acd60
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
call sub.KERNEL32.dll_OutputDebugStringA
nop
jmp 0x4705f8
mov edi, dword [esi + 0x154]
cmp edi, 1
jae 0x47040f
xor edi, edi
jmp 0x470410
dec edi
push edi
lea ecx, [ebp - 0x50]
push 0x60f288
push ecx
call fcn.005acd60
add esp, 0xc
lea edx, [ebp - 0x50]
push edx
call sub.KERNEL32.dll_OutputDebugStringA
nop
jmp 0x4705f8
xor edi, edi
jmp 0x4705f8
mov edx, dword [esi + 0x144]
mov edi, dword [esi + 0x154]
xor eax, eax
xor ecx, ecx
cmp ecx, eax
ja 0x470456
jb 0x470452
cmp edi, edx
jae 0x470456
xor edi, edi
jmp 0x470458
sub edi, edx
push edi
lea eax, [ebp - 0x50]
push 0x60f294
push eax
call fcn.005acd60
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
call sub.KERNEL32.dll_OutputDebugStringA
nop
jmp 0x4705f8
mov eax, dword [esi + 0x154]
add eax, dword [esi + 0x144]
mov edi, dword [esi + 0x14c]
xor ecx, ecx
xor edx, edx
cmp ecx, edx
jb 0x4704a5
ja 0x470499
cmp eax, edi
jb 0x4704a5
dec edi
push edi
push 0x60f2a0
jmp 0x4703e5
mov edi, eax
push edi
push 0x60f2a0
jmp 0x4703e5
mov edi, dword [esi + 0x14c]
dec edi
push edi
lea ecx, [ebp - 0x50]
push 0x60f2ac
push ecx
call fcn.005acd60
add esp, 0xc
lea edx, [ebp - 0x50]
push edx
call sub.KERNEL32.dll_OutputDebugStringA
nop
jmp 0x4705f8
mov edi, dword [ebp - 0xd8]
push edi
lea eax, [ebp - 0x50]
push 0x60f2b8
push eax
call fcn.005acd60
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
call sub.KERNEL32.dll_OutputDebugStringA
nop
jmp 0x4705f8
mov edi, dword [ebp - 0xdc]
push edi
lea edx, [ebp - 0x50]
push 0x60f2c4
push edx
call fcn.005acd60
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
call sub.KERNEL32.dll_OutputDebugStringA
nop
mov ecx, dword [ebp - 0xdc]
cmp ecx, dword [ebp - 0xd8]
jne 0x4705f8
jmp 0x470d41
mov edx, dword [ebp - 0xdc]
push edx
lea eax, [ebp - 0x50]
push 0x60ef7c
push eax
call fcn.005acd60
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
call sub.KERNEL32.dll_OutputDebugStringA
nop
mov edi, dword [esi + 0x154]
jmp 0x4705f8
mov edi, dword [ebp - 0xdc]
push edi
lea edx, [ebp - 0x50]
push 0x60f2d0
push edx
call fcn.005acd60
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
call sub.KERNEL32.dll_OutputDebugStringA
nop
fld dword [esi + 0x168]
fld dword [0x61190c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4705f8
mov ecx, dword [ebp - 0xe4]
fnstcw word [ebp - 0x12a]
sub ecx, dword [ebp - 0xe8]
movzx eax, word [ebp - 0x12a]
mov dword [ebp - 0x130], ecx
or eax, 0xc00
fild dword [ebp - 0x130]
fmul dword [esi + 0x168]
fstp dword [ebp - 0x130]
fld dword [ebp - 0x130]
mov dword [ebp - 0x130], eax
fldcw word [ebp - 0x130]
fistp qword [ebp - 0x148]
mov edi, dword [ebp - 0x148]
fldcw word [ebp - 0x12a]
fld dword [0x61190c]
fstp dword [esi + 0x168]
cmp ebx, 5
jne 0x470661
mov edx, dword [esi + 0x14c]
push 1
lea eax, [ebp - 0x10c]
push eax
push 1
mov ecx, esi
mov dword [esi + 0x154], edi
mov dword [ebp - 0x10c], 0x1c
mov dword [ebp - 0x108], 4
mov dword [ebp - 0x100], edx
mov dword [ebp - 0x104], 0
mov dword [ebp - 0xf8], edi
call fcn.0048b629
push 0x60f2e8
call sub.KERNEL32.dll_OutputDebugStringA
nop
jmp 0x470d41
mov eax, dword [esi + 0x14c]
cmp edi, eax
jb 0x47066e
lea edi, [eax - 1]
mov ecx, dword [esi + 0x160]
mov dword [esi + 0x154], edi
cmp eax, ecx
jbe 0x47069a
lea edx, [eax - 1]
cmp edi, edx
je 0x47069a
add ecx, edi
mov dword [esi + 0x158], edi
cmp ecx, eax
jb 0x4706a3
dec eax
mov dword [esi + 0x15c], eax
jmp 0x4706a9
mov dword [esi + 0x158], edi
lea ecx, [eax - 1]
mov dword [esi + 0x15c], ecx
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xb
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x1009
push eax
call edi
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x12c], eax
cmp eax, dword [esi + 0x15c]
ja 0x470c71
mov ecx, dword [esi + 0x134]
cmp dword [ecx + eax*4], 0
lea ecx, [ecx + eax*4]
je 0x470c58
mov edx, dword [ecx]
mov ecx, dword [edx]
mov dword [ebp - 0x14c], ecx
test ecx, ecx
je 0x470c58
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x470c58
xor edi, edi
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x130], edi
call fcn.00432c10
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x134], ecx
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x47074c
push edi
lea ecx, [ebx + 0x34]
call fcn.00432990
mov edx, dword [ebp - 0x134]
mov ecx, dword [ebx + 0x34]
push edx
call fcn.00446ec0
mov edi, eax
xor eax, eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov ecx, edi
add esp, 4
or ecx, edx
mov eax, 0x2020
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edx
mov dword [0x642a1c], eax
mov dword [0x642a20], 1
je 0x4707fc
mov ecx, edi
and ecx, edx
cmp ecx, 0xffffffff
je 0x4707fc
lea edx, [ebp - 0x1c]
push edx
mov dword [0x642a1c], eax
lea eax, [ebp - 0x13c]
push 0x60ba18
push eax
mov dword [0x642a20], 2
call fcn.00432720
mov ecx, dword [ebp - 0x144]
add esp, 0xc
push ecx
push edi
mov dl, 4
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 3
call fcn.00445cc0
add esp, 8
mov dword [ebp - 0x130], eax
mov dword [0x642a20], 4
jmp 0x470816
push 0x60aa6c
lea ecx, [ebp - 0x13c]
call fcn.00432b40
mov dword [0x642a20], 5
mov eax, dword [ebp - 0x13c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x134], esp
mov edi, esp
push eax
mov dword [0x642a1c], 0x2020
mov dword [ebp - 0x134], eax
call fcn.00432780
mov ecx, dword [ebp - 0x130]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov edi, 0x642ae0
call fcn.00401fd0
cmp byte [ebx + 0x32], 1
mov edi, eax
je 0x470864
mov edi, dword [0x644474]
push 0x3c
lea edx, [ebp - 0x188]
push 0
push edx
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 7
call fcn.005afd80
mov eax, dword [ebp - 0x12c]
or dword [ebp - 0x188], 0xf
mov dword [ebp - 0x184], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x16c], edi
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
add esp, 0xc
or eax, ecx
jge 0x4708c0
push 0
lea ecx, [ebx + 0x34]
call fcn.00432990
mov eax, dword [esi + 0x20]
mov ecx, dword [ebx + 0x34]
lea edx, [ebp - 0x188]
push edx
push 0
push 0x1007
push eax
mov dword [ebp - 0x174], ecx
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 8
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [ebx + 0x34]
push eax
push 0
push edi
mov ecx, esi
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 9
call fcn.004b216d
push 0x4f
lea ecx, [ebp - 0x9f]
push 0
push ecx
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 0xa
mov byte [ebp - 0xa0], 0
call fcn.005afd80
add esp, 0xc
cmp byte [ebx + 0x32], 1
jne 0x470bed
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
push 0x10000
push 0
push edx
push eax
lea esi, [ebp - 0xa0]
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 0xb
call fcn.004469c0
add esp, 0x10
mov ecx, esi
mov esi, dword [ebp - 0x138]
push ecx
push 2
push edi
mov ecx, esi
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 0xc
call fcn.004b216d
push 0x50
lea edx, [ebp - 0xa0]
push 0
push edx
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 0xd
call fcn.005afd80
mov eax, dword [ebx + 8]
movzx edx, byte [ebx + 9]
add esp, 0xc
movzx ecx, al
push ecx
push edx
mov ecx, eax
mov edx, eax
shr ecx, 0x10
and ecx, 0x3f
push ecx
shr edx, 0x16
and edx, 0x3f
push edx
shr eax, 0x1c
push eax
mov eax, dword [ebx + 0xc]
add eax, 0x76c
push eax
lea ecx, [ebp - 0xa0]
push 0x60ba1c
push ecx
call fcn.005acd60
add esp, 0x20
lea edx, [ebp - 0xa0]
push edx
push 3
push edi
mov ecx, esi
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 0xe
call fcn.004b216d
push 0x50
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.005afd80
mov eax, dword [ebx + 0x10]
movzx edx, byte [ebx + 0x11]
add esp, 0xc
movzx ecx, al
push ecx
push edx
mov ecx, eax
mov edx, eax
shr ecx, 0x10
and ecx, 0x3f
shr edx, 0x16
push ecx
and edx, 0x3f
shr eax, 0x1c
push edx
push eax
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
lea ecx, [ebp - 0xa0]
push 0x60ba1c
push ecx
call fcn.005acd60
push 0x50
lea edx, [ebp - 0xa0]
push 0
push edx
call fcn.005afd80
mov eax, dword [ebx]
movzx edx, byte [ebx + 1]
add esp, 0x2c
movzx ecx, al
push ecx
push edx
mov ecx, eax
mov edx, eax
shr ecx, 0x10
and ecx, 0x3f
push ecx
shr edx, 0x16
and edx, 0x3f
push edx
shr eax, 0x1c
push eax
mov eax, dword [ebx + 4]
add eax, 0x76c
push eax
lea ecx, [ebp - 0xa0]
push 0x60ba1c
push ecx
call fcn.005acd60
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x144]
mov edx, eax
add esp, 0x20
or edx, ecx
je 0x470afd
and eax, ecx
cmp eax, 0xffffffff
je 0x470afd
lea eax, [ebp - 0x1c]
mov dword [0x642a20], 0x11
push eax
jmp 0x470b0c
mov dword [0x642a20], 0xf
push 0x60edd8
push 1
push edi
mov ecx, esi
mov dword [0x642a1c], 0x2020
call fcn.004b216d
mov ebx, dword [ebp - 0x12c]
mov eax, dword [esi + 0x134]
add ebx, ebx
add ebx, ebx
mov ecx, dword [eax + ebx]
add ecx, 4
push 0x60b980
push ecx
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 0x13
call fcn.00443a90
add esp, 8
test al, al
je 0x470bb9
mov eax, dword [esi + 0x134]
mov ebx, dword [eax + ebx]
mov eax, dword [ebx + 4]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 0x14
jge 0x470b95
push 0
lea ecx, [ebx + 4]
call fcn.00432990
mov ebx, dword [ebx + 4]
push ebx
push 4
push edi
mov ecx, esi
call fcn.004b216d
mov dword [0x642a1c], 0x2020
mov dword [0x642a20], 0x15
jmp 0x470bed
push 0x60b980
push 4
mov ebx, 0x2020
push edi
mov ecx, esi
mov dword [0x642a1c], ebx
mov dword [0x642a20], 0x16
call fcn.004b216d
mov dword [0x642a1c], ebx
mov dword [0x642a20], 0x17
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c0]
shr ecx, 0x1f
and cl, 1
movzx eax, cl
mov ecx, dword [ebp - 0x12c]
push eax
push ecx
mov ecx, esi
call edx
mov eax, 0x18
mov dword [ebp - 0x130], eax
mov dword [0x642a20], eax
mov eax, dword [ebp - 0x134]
mov dword [0x642a1c], 0x2020
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470c52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x12c], eax
cmp eax, dword [esi + 0x15c]
jbe 0x4706e2
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x20]
push 0
push 1
push 0xb
push ecx
call edi
mov edx, dword [esi + 0x14c]
mov eax, dword [esi + 0x154]
push 1
lea ecx, [ebp - 0x128]
push ecx
push 1
mov ecx, esi
mov dword [ebp - 0x128], 0x1c
mov dword [ebp - 0x124], 5
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x114], eax
call fcn.0048b629
push 0x31
lea edx, [ebp - 0xd3]
push 0
push edx
mov byte [ebp - 0xd4], 0
call fcn.005afd80
mov eax, dword [esi + 0x154]
add esp, 0xc
push eax
lea ecx, [ebp - 0xd4]
push 0x60f304
push ecx
call fcn.005acd60
add esp, 0xc
lea edx, [ebp - 0xd4]
push edx
call sub.KERNEL32.dll_OutputDebugStringA
nop
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x470d41
mov ecx, dword [ebp - 0xdc]
push ecx
lea edx, [ebp - 0x50]
push 0x60f2dc
push edx
call fcn.005acd60
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
call sub.KERNEL32.dll_OutputDebugStringA
nop
fld dword [0x61190c]
fstp dword [esi + 0x168]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ac396
mov esp, ebp
pop ebp
ret