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

Disassembly:
sub esp, 0x664
mov eax, dword [0x49e7c0]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x674]
push edi
push 0
lea eax, [esp + 0x80]
push eax
push 0
push 0x29
mov ebx, ecx
mov dword [esp + 0x8c], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
lea ecx, [esp + 0x15c]
push ecx
mov dword [esp + 0x160], 0xc
call edi
lea edx, [esp + 0x15c]
push edx
mov dword [esp + 0x4c], eax
mov byte [esp + 0x17b], 1
call edi
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [esp + 0x4c], eax
call ebp
push 4
mov dword [esp + 0x70], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
mov dword [esp + 0x7c], eax
call ebp
cmp dword [0x4a000c], ebx
mov dword [esp + 0x78], eax
je 0x475e5d
cmp dword [ebx + 0xa4], 8
jb 0x475e3b
mov ebx, dword [ebx + 0x90]
jmp 0x475e41
add ebx, 0x90
push 0x824
lea eax, [esp + 0x680]
push eax
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x47627b
mov ecx, dword [ebx + 0xc4]
test ecx, ecx
jne 0x475e9a
cmp dword [ebx + 0xc0], 8
jb 0x475e78
mov ebx, dword [ebx + 0xac]
jmp 0x475e7e
add ebx, 0xac
push 0x824
lea ecx, [esp + 0x680]
push ecx
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x47627b
xor edi, edi
test ecx, ecx
jle 0x47627b
cmp ecx, 2
mov edx, dword [esp + 0x680]
mov eax, dword [esp + 0x684]
mov ebp, dword [esp + 0x67c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x688]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jne 0x475eed
sub eax, ebp
add eax, 0x22
cdq
sub eax, edx
sar eax, 1
test edi, edi
jne 0x475ee9
lea eax, [eax + ebp - 4]
mov dword [esp + 0x1c], eax
jmp 0x475eed
lea ebp, [eax + ebp + 4]
mov ecx, dword [esp + 0x44]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], edx
mov edx, dword [ebx + edi*4 + 0xd0]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], eax
xor ecx, ecx
mov edi, edi
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add ecx, 1
add eax, edx
mov edx, eax
jne 0x475f20
push ecx
lea eax, [ebp + 4]
lea edx, [ecx + ecx*2]
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x474]
lea eax, [eax + edx*4 + 8]
push str.___dd___d
push ecx
mov dword [esp + 0x70], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebx + edi*4 + 0xd0]
mov eax, dword [ebx + edi*4 + 0xc8]
push edx
push eax
lea ecx, [esp + 0x484]
push ecx
lea edx, [esp + 0x288]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0x824
lea eax, [esp + 0x60]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x27c]
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
push 0
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
add ecx, 0xffffffff
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov edx, dword [ebx + edi*4 + 0xd8]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], eax
xor ecx, ecx
mov edi, edi
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add ecx, 1
add eax, edx
mov edx, eax
jne 0x475ff0
cmp ecx, 3
jge 0x476012
mov ecx, 3
mov eax, dword [esp + 0x64]
add eax, 4
lea ecx, [ecx + ecx*2]
lea edx, [eax + ecx*2 + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + edi*4 + 0xd8]
push eax
lea eax, [esp + 0x274]
push str._3d__
push eax
mov dword [esp + 0x60], edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x824
lea ecx, [esp + 0x50]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x27c]
push edx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
push 0
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add edx, 0xffffffff
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x48]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], edx
sub eax, 2
lea edx, [edi*8]
sub edx, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
lea eax, [ebx + edx*4 + 0xf4]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], eax
lea eax, [edi + 8]
add ebp, 8
lea edx, [eax*8]
sub edx, eax
cmp dword [ebx + edx*4 + 0x18], 8
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], ebp
lea ebp, [ebx + edx*4]
jb 0x4760ff
mov eax, dword [ebp + 4]
jmp 0x476102
lea eax, [ebp + 4]
push 0xc24
lea edx, [esp + 0x28]
push edx
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
sub ecx, dword [esp + 0x24]
sub edx, eax
cmp ecx, edx
jle 0x4761a7
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push 0xc24
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push 3
push 0x48c21c
push esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_DrawTextW]
push 0x824
lea ecx, [esp + 0x28]
push ecx
push 3
push 0x48c21c
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add dword [esp + 0x34], edx
cmp dword [ebp + 0x18], 8
mov eax, dword [eax]
jb 0x47619d
mov ebp, dword [ebp + 4]
push 0x826
jmp 0x4761c0
add ebp, 4
push 0x826
jmp 0x4761c0
cmp dword [ebp + 0x18], 8
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
jb 0x4761b8
mov ebp, dword [ebp + 4]
jmp 0x4761bb
add ebp, 4
push 0x824
lea ecx, [esp + 0x38]
push ecx
push eax
push ebp
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
test edi, edi
jne 0x476264
cmp dword [ebx + 0xc4], 2
jne 0x476264
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edi
add ebp, 0xffffffff
push ebp
add eax, 2
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x20]
add eax, 1
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
add eax, 2
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x1c]
push edi
push ebp
add eax, 3
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push edx
add eax, 3
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x1c]
push edi
add eax, 4
push ebp
push eax
push esi
mov dword [esp + 0x80], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebx + 0xc4]
add edi, 1
cmp edi, ecx
jl 0x475ea4
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x6c]
push edx
push esi
call ebp
mov eax, dword [esp + 0x48]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov ecx, dword [esp + 0x44]
push ecx
call edi
mov edx, dword [esp + 0x78]
push edx
push esi
call ebp
mov eax, dword [esp + 0x74]
push eax
call edi
mov ecx, dword [esp + 0x670]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004777ea
add esp, 0x664
ret 0x14