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

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x70]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [esp + 0x14], edx
mov esi, ecx
je 0x47641a
cmp byte [eax], 0
je 0x47641a
mov ecx, dword [esp + 0x70]
push ebp
push edi
call fcn.004336b0
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x78], eax
call fcn.004336b0
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x7c], eax
cmp dword [esp + 0x90], ebx
je 0x475d70
push 0xe
call edi
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
call edi
push eax
jmp 0x475db1
cmp dword [esp + 0x98], ebx
je 0x475d92
mov eax, dword [esp + 0x9c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0xa0]
push ecx
jmp 0x475db1
mov edx, dword [esp + 0x78]
mov eax, dword [edx*4 + 0x5a47c0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx*4 + 0x5a47c0]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
cmp dword [0x5b121c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], 0xffffffff
je 0x475e0a
mov edx, dword [esp + 0x8c]
mov ecx, esi
call fcn.0048d6d0
mov dword [esp + 0x50], eax
mov ecx, esi
call fcn.00500370
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x48], ebp
xor ebx, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x475e26
sub eax, ecx
lea edx, [esp + 0x68]
mov dword [esp + 0x4c], eax
push edx
lea eax, [esp + 0x58]
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 0x476378
nop
mov eax, dword [0x5b121c]
test eax, eax
je 0x475e89
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
call fcn.00572da3
add esp, 8
cmp eax, 1
je case.0x475ea7.4
cmp eax, 2
je case.0x475ea7.4
mov edx, dword [esp + 0x1c]
movzx eax, byte [edx + ebp]
lea ecx, [edx + ebp]
add eax, 0xfffffffe
cmp eax, 0x1d
ja case.0x475ea7.4
movzx eax, byte [eax + 0x47643c]
jmp dword [eax*4 + 0x476424]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x475ec0
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 0x476243
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x475ee6
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 0x476243
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x475f0c
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 0x476243
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x475f32
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 + 0x84]
push edx
lea edx, [esp + 0x84]
call fcn.00500120
add ebp, eax
jmp 0x476243
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, eax
jne 0x475f6b
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 + 0x78], eax
mov dword [esp + 0x7c], ecx
jmp 0x476243
mov eax, dword [esp + 0x10]
test eax, eax
je 0x476243
cmp edi, ebx
mov dword [esp + 0x10], 0
jle 0x476095
mov edx, dword [esp + 0x1c]
sub edi, ebx
add ebx, edx
push edi
mov edx, ebx
mov ecx, esi
call fcn.00500390
mov ecx, dword [esp + 0x54]
mov edx, ecx
sub edx, dword [esp + 0x38]
add eax, edx
mov edx, dword [esp + 0x70]
cmp eax, edx
mov dword [esp + 0x5c], eax
jle 0x475fe0
mov eax, edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x34], 1
cmp ecx, eax
jge 0x476091
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x476075
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x476075
mov eax, dword [esp + 0x98]
test eax, eax
je 0x476023
mov eax, dword [esp + 0xa0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x9c]
push ecx
jmp 0x476042
mov edx, dword [esp + 0x18]
mov eax, dword [edx*4 + 0x5a47c0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx*4 + 0x5a47c0]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push 0
push edi
push ebx
mov ebp, eax
lea eax, [esp + 0x60]
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 0x47608d
mov edx, dword [esp + 0x58]
push 0
push edi
push ebx
lea eax, [esp + 0x60]
push eax
push 6
push edx
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4760b9
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 0x476112
mov eax, dword [esp + 0x98]
test eax, eax
je 0x4760d8
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x20]
jne 0x4760d8
mov ecx, dword [esp + 0x9c]
push ecx
jmp 0x4760e4
mov edx, dword [esp + 0x78]
mov eax, dword [edx*4 + 0x5a47c0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x98]
test eax, eax
mov eax, dword [esp + 0x7c]
je 0x47610a
cmp eax, dword [esp + 0x18]
jne 0x47610a
mov ecx, dword [esp + 0xa0]
push ecx
jmp 0x476112
mov edx, dword [eax*4 + 0x5a47c0]
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 0x476139
cmp dword [esp + 0x44], edi
je 0x476237
mov eax, dword [esp + 0x30]
test eax, eax
je 0x476149
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x476158
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 0x476177
cmp edi, eax
jne 0x476177
mov dword [esp + 0x24], eax
jmp 0x47622c
test ebx, ebx
mov eax, dword [esp + 0x88]
mov edi, eax
je 0x47619d
xor ecx, ecx
cmp eax, 0x190
setle cl
dec ecx
and ecx, 0xfffffed4
add ecx, 0x2bc
mov eax, ecx
cmp dword [esp + 0x94], 2
jne 0x4761d9
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x8c]
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 + 0xac]
push 0
push 0
push 0
push eax
jmp 0x47620b
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push edx
mov edx, dword [esp + 0x9c]
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 + 0x88], edi
je 0x47622c
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
mov ecx, esi
call fcn.00500370
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
xor edi, edi
test eax, eax
mov ebx, ebp
jne 0x476254
mov eax, dword [esp + 0x4c]
inc ebp
cmp ebp, eax
mov dword [esp + 0x48], ebp
jl 0x475e60
cmp edi, ebx
jle 0x47625a
mov ebp, edi
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x476378
cmp ebp, ebx
jle 0x476378
mov eax, dword [esp + 0x1c]
mov edi, ebp
sub edi, ebx
add ebx, eax
push edi
mov edx, ebx
mov ecx, esi
call fcn.00500390
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x38]
mov edx, ecx
sub edx, ebp
add eax, edx
mov edx, dword [esp + 0x70]
cmp eax, edx
mov dword [esp + 0x5c], eax
jle 0x4762a2
mov eax, edx
mov dword [esp + 0x5c], eax
cmp ecx, eax
jge 0x476374
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x476358
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x476358
mov ebp, dword [esp + 0x98]
test ebp, ebp
mov eax, dword [esp + 0x7c]
je 0x4762e4
cmp eax, dword [esp + 0x18]
jne 0x4762e4
mov eax, dword [esp + 0xa0]
push eax
jmp 0x4762ec
mov ecx, dword [eax*4 + 0x5a47c0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
test ebp, ebp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x78]
je 0x476312
cmp eax, dword [esp + 0x20]
jne 0x476312
mov edx, dword [esp + 0x9c]
push edx
jmp 0x47631a
mov eax, dword [eax*4 + 0x5a47c0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x58]
push 0
push edi
push ebx
lea ecx, [esp + 0x60]
push ecx
push 6
mov ebp, eax
mov eax, dword [esp + 0x68]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ecx, dword [esp + 0x80]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebp
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x476370
mov eax, dword [esp + 0x58]
push 0
push edi
push ebx
lea edx, [esp + 0x60]
push edx
push 6
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x90]
test eax, eax
pop edi
pop ebp
je 0x47638f
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x4763af
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4763a4
mov ecx, dword [esp + 0x98]
push ecx
jmp 0x4763b0
mov edx, dword [esp + 0x10]
mov eax, dword [edx*4 + 0x5a47c0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [esp + 0x8c], 1
jne 0x4763ea
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x50]
push 0
push 0
push 0x583b74
lea edx, [esp + 0x58]
push edx
push 6
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x60]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x48]
test eax, eax
jl 0x4763fb
push eax
call fcn.00572bf6
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x47640b
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47641a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
pop ebx
add esp, 0x54
ret 0x3c