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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x6c]
test eax, eax
push esi
mov dword [esp + 0x10], edx
mov esi, ecx
je 0x472d5e
cmp byte [eax], 0
je 0x472d5e
mov ecx, dword [esp + 0x68]
push ebx
push ebp
push edi
call fcn.00431e50
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x74], eax
call fcn.00431e50
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4726f0
push 0xe
call edi
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
call edi
push eax
jmp 0x472733
mov eax, dword [esp + 0x94]
test eax, eax
je 0x472714
mov eax, dword [esp + 0x98]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x9c]
push ecx
jmp 0x472733
mov edx, dword [esp + 0x74]
mov eax, dword [edx*4 + 0x593350]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx*4 + 0x593350]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
xor edi, edi
mov dword [esp + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], edi
call fcn.004f8fa0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x48], ebp
xor ebx, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x472786
sub eax, ecx
lea edx, [esp + 0x64]
mov dword [esp + 0x4c], eax
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 0x34], 0
jle 0x472ccc
nop
mov eax, dword [0x59f66c]
test eax, eax
je 0x4727e9
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
call fcn.00565618
add esp, 8
cmp eax, 1
je case.0x472807.4
cmp eax, 2
je case.0x472807.4
mov edx, dword [esp + 0x1c]
movzx eax, byte [edx + ebp]
lea ecx, [edx + ebp]
add eax, 0xfffffffe
cmp eax, 0x1d
ja case.0x472807.4
movzx eax, byte [eax + 0x472d80]
jmp dword [eax*4 + 0x472d68]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x472820
mov dword [esp + 0x10], 1
mov edi, ebp
mov eax, dword [esp + 0x2c]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x2c], ecx
jmp 0x472b9d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x472846
mov dword [esp + 0x10], 1
mov edi, ebp
mov eax, dword [esp + 0x14]
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 0x14], edx
jmp 0x472b9d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x47286c
mov dword [esp + 0x10], 1
mov edi, ebp
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x28], eax
jmp 0x472b9d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x472892
mov dword [esp + 0x10], 1
mov edi, ebp
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edx
push eax
lea edx, [esp + 0x80]
push edx
lea edx, [esp + 0x80]
call fcn.004f8d50
add ebp, eax
jmp 0x472b9d
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, eax
jne 0x4728cb
mov dword [esp + 0x10], 1
mov edi, ebp
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
jmp 0x472b9d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x472b9d
cmp edi, ebx
mov dword [esp + 0x10], 0
jle 0x4729f5
mov edx, dword [esp + 0x1c]
sub edi, ebx
add ebx, edx
push edi
mov edx, ebx
mov ecx, esi
call fcn.004f8fc0
mov ecx, dword [esp + 0x50]
mov edx, ecx
sub edx, dword [esp + 0x38]
add eax, edx
mov edx, dword [esp + 0x6c]
cmp eax, edx
mov dword [esp + 0x58], eax
jle 0x472940
mov eax, edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x34], 1
cmp ecx, eax
jge 0x4729f1
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4729d5
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x4729d5
mov eax, dword [esp + 0x94]
test eax, eax
je 0x472983
mov eax, dword [esp + 0x9c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x98]
push ecx
jmp 0x4729a2
mov edx, dword [esp + 0x18]
mov eax, dword [edx*4 + 0x593350]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx*4 + 0x593350]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push 0
push edi
push ebx
mov ebp, eax
lea eax, [esp + 0x5c]
push eax
push 6
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push ebp
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebp, dword [esp + 0x48]
jmp 0x4729ed
mov edx, dword [esp + 0x54]
push 0
push edi
push ebx
lea eax, [esp + 0x5c]
push eax
push 6
push edx
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x472a19
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xe
call edi
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
call edi
push eax
jmp 0x472a72
mov eax, dword [esp + 0x94]
test eax, eax
je 0x472a38
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x20]
jne 0x472a38
mov ecx, dword [esp + 0x98]
push ecx
jmp 0x472a44
mov edx, dword [esp + 0x74]
mov eax, dword [edx*4 + 0x593350]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x94]
test eax, eax
mov eax, dword [esp + 0x78]
je 0x472a6a
cmp eax, dword [esp + 0x18]
jne 0x472a6a
mov ecx, dword [esp + 0x9c]
push ecx
jmp 0x472a72
mov edx, dword [eax*4 + 0x593350]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x40], ebx
jne 0x472a99
cmp dword [esp + 0x44], edi
je 0x472b91
mov eax, dword [esp + 0x30]
test eax, eax
je 0x472aa9
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x472ab8
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edi
jne 0x472ad7
cmp edi, eax
jne 0x472ad7
mov dword [esp + 0x24], eax
jmp 0x472b86
test ebx, ebx
mov eax, dword [esp + 0x84]
mov edi, eax
je 0x472afd
xor ecx, ecx
cmp eax, 0x190
setle cl
dec ecx
and ecx, 0xfffffed4
add ecx, 0x2bc
mov eax, ecx
cmp dword [esp + 0x90], 2
jne 0x472b36
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push ecx
push 0
push edx
push 0
push eax
mov eax, dword [esp + 0xa8]
push 0
push 0
push 0
push eax
jmp 0x472b65
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push edx
mov edx, dword [esp + 0x98]
push 0
push ecx
push 0
push eax
push 0
push 0
push 0
neg edx
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x84], edi
je 0x472b86
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
mov ecx, esi
call fcn.004f8fa0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
xor edi, edi
test eax, eax
mov ebx, ebp
jne 0x472bae
mov eax, dword [esp + 0x4c]
inc ebp
cmp ebp, eax
mov dword [esp + 0x48], ebp
jl 0x4727c0
cmp edi, ebx
jle 0x472bb4
mov ebp, edi
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x472ccc
cmp ebp, ebx
jle 0x472ccc
mov eax, dword [esp + 0x1c]
mov edi, ebp
sub edi, ebx
add ebx, eax
push edi
mov edx, ebx
mov ecx, esi
call fcn.004f8fc0
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x38]
mov edx, ecx
sub edx, ebp
add eax, edx
mov edx, dword [esp + 0x6c]
cmp eax, edx
mov dword [esp + 0x58], eax
jle 0x472bfc
mov eax, edx
mov dword [esp + 0x58], eax
cmp ecx, eax
jge 0x472cc8
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x472cac
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x472cac
mov ebp, dword [esp + 0x94]
test ebp, ebp
mov eax, dword [esp + 0x78]
je 0x472c3e
cmp eax, dword [esp + 0x18]
jne 0x472c3e
mov eax, dword [esp + 0x9c]
push eax
jmp 0x472c46
mov ecx, dword [eax*4 + 0x593350]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
test ebp, ebp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x74]
je 0x472c69
cmp eax, dword [esp + 0x20]
jne 0x472c69
mov edx, dword [esp + 0x98]
push edx
jmp 0x472c71
mov eax, dword [eax*4 + 0x593350]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x54]
push 0
push edi
push ebx
lea ecx, [esp + 0x5c]
push ecx
push 6
mov ebp, eax
mov eax, dword [esp + 0x64]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ecx, dword [esp + 0x7c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebp
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x472cc4
mov eax, dword [esp + 0x54]
push 0
push edi
push ebx
lea edx, [esp + 0x5c]
push edx
push 6
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
test eax, eax
pop edi
pop ebp
pop ebx
je 0x472ce4
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x472d04
mov eax, dword [esp + 0x88]
test eax, eax
je 0x472cf9
mov ecx, dword [esp + 0x90]
push ecx
jmp 0x472d05
mov edx, dword [esp + 0xc]
mov eax, dword [edx*4 + 0x593350]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [esp + 0x84], 1
jne 0x472d3f
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x48]
push 0
push 0
push 0x574b10
lea edx, [esp + 0x50]
push edx
push 6
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x472d4f
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x472d5e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
add esp, 0x50
ret 0x3c