Function at 0x470640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a3b1b
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x74]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x30]
mov dword [esp + 0x2c8], edi
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 4]
push edi
push edi
push 0x1200
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x2c], eax
jle 0x470884
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push ebp
push 0x1207
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
jge 0x470875
cmp eax, dword [esp + 0x30]
jle 0x470875
xor edx, edx
cmp dword [esi + 0x24], ebp
jne 0x470712
mov edx, 2
jmp 0x470728
cmp dword [esi + 0x28], ebp
jne 0x47071e
mov edx, 1
jmp 0x470728
cmp dword [esi + 0x2c], ebp
jne 0x470728
mov edx, 3
mov ecx, dword [esi + 0x38]
mov ebx, dword [ecx]
push edx
mov edx, dword [esp + 0x20]
sub eax, edi
push eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [ebx + 4]
push edi
push eax
call edx
cmp dword [esi + 0x2c], ebp
jne 0x470781
mov edi, dword [esi + 0x3c]
push edi
call fcn.00470a70
mov ecx, dword [esp + 0x18]
mov eax, ecx
sub eax, dword [edi + 0xc]
add eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
jl 0x470781
mov edx, dword [esp + 0x6c]
mov ebx, dword [esi + 0x3c]
xor ecx, ecx
cmp dword [esi + 0x30], ecx
sete cl
push ecx
push eax
push edx
mov eax, 1
call fcn.00470480
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, 5
sub ecx, 5
cmp ecx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
jle 0x470875
xor eax, eax
lea edx, [esp + 0x40]
push edx
push ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [esi + 4]
push 0x120b
lea ecx, [esp + 0xc0]
push eax
mov dword [esp + 0x50], 0x86
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], 0x104
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [esp + 0x54]
mov edi, 0x8824
test al, 2
je 0x470805
mov edi, 0x8825
jmp 0x47080e
test al, 1
je 0x47080e
mov edi, 0x8826
mov ecx, dword [esp + 0x6c]
push 1
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [0x4d1fc0]
mov eax, dword [edx]
push eax
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
lea eax, [esp + 0xb4]
lea edx, [eax + 2]
jmp 0x470840
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x470840
push edi
sub eax, edx
lea ecx, [esp + 0x1c]
push ecx
sar eax, 1
push eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0xc0]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x6c]
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
inc ebp
cmp ebp, dword [esp + 0x2c]
jl 0x4706cf
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
cmp eax, edi
jle 0x4708a8
mov esi, dword [esi + 0x38]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esi]
mov edx, dword [edx + 4]
push 0
sub eax, edi
push eax
mov eax, dword [esp + 0x3c]
push eax
push edi
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, 1
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.0048b133
add esp, 0x2b8
ret