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

Disassembly:
sub esp, 0x16c
mov eax, dword [esp + 0x170]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x58], eax
cmp ecx, 0x28
mov dword [esi + 0x6c], 0x3f800000
jbe 0x40325c
mov ecx, 0x400
jmp 0x40326b
cmp ecx, 0x14
mov ecx, 0x200
ja 0x40326b
mov ecx, 0x100
lea edx, [esp + 0xa8]
mov dword [esi + 0x68], ecx
mov dword [esi + 0x64], ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov ecx, dword [esi + 0x64]
mov eax, dword [esp + 0x100]
cmp ecx, eax
jbe 0x4032b2
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x68], eax
fild qword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x64], eax
fidiv dword [esp + 0x18]
fstp dword [esi + 0x6c]
jmp 0x4032b4
xor ebx, ebx
mov eax, dword [esi + 0x58]
lea ecx, [esi + 0x5c]
push ecx
push 1
mov edx, dword [eax]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x68]
push 0x1a
push ebx
push 1
push ecx
mov ecx, dword [esi + 0x64]
push ecx
push eax
call dword [edx + 0x50]
cmp eax, ebx
jl 0x4035b0
mov edx, dword [esi + 0x64]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x68]
push ebx
neg eax
mov dword [esp + 0x80], 0x28
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
mov word [esp + 0x8c], 1
mov dword [esp + 0x90], ebx
mov word [esp + 0x8e], 0x20
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
lea edx, [esp + 0x88]
mov edi, eax
push ebx
push edx
push edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
push 1
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0x48
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul dword [esi + 0x6c]
call fcn.005755f0
push eax
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x54]
push esi
mov edx, ecx
push 2
and dl, 1
push 4
neg eax
neg dl
sbb edx, edx
push 0
shr ecx, 1
push 0
and edx, 0x12c
push 1
and ecx, 1
push 0
add edx, 0x190
push 0
push ecx
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x4033d7
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x16c
ret 4
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call ebx
push ebp
push edi
call ebx
push 0xffffff
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ax, word [0x592480]
xor edi, edi
xor ebx, ebx
mov word [esp + 0x12], ax
mov byte [esp + 0x11], 0x20
lea ebp, [esi + 0x74]
mov cl, byte [esp + 0x11]
lea edx, [esp + 0x28]
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x16]
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x64]
lea eax, [edx + edi + 1]
cmp eax, ecx
jbe 0x403452
mov ecx, dword [esp + 0x2c]
xor edi, edi
lea ebx, [ebx + ecx + 1]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x16]
push 1
push edx
push 0
push 2
push ebx
push edi
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ecx, dword [esi + 0x64]
xor eax, eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
fild qword [esp + 0x74]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
fidiv dword [esp + 0x34]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
add ebp, 0x10
fstp dword [ebp - 0x14]
mov edx, dword [esi + 0x68]
fild qword [esp + 0x4c]
mov dword [esp + 0x6c], edx
fidiv dword [esp + 0x6c]
fstp dword [ebp - 0x10]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x64]
add ecx, edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x5c], ecx
fild qword [esp + 0x5c]
fidiv dword [esp + 0x3c]
fstp dword [ebp - 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x68]
add ecx, ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], ecx
fild qword [esp + 0x44]
fidiv dword [esp + 0x54]
fstp dword [ebp - 8]
mov eax, dword [esp + 0x28]
lea edi, [edi + eax + 1]
mov al, byte [esp + 0x11]
inc al
cmp al, 0x7f
mov byte [esp + 0x11], al
jl 0x40341a
mov ecx, dword [esp + 0x24]
push 0
push 0
mov eax, dword [ecx]
lea ecx, [esp + 0x6c]
push ecx
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x40]
mov eax, dword [esi + 0x68]
mov ebx, dword [esp + 0x68]
xor edi, edi
test eax, eax
jbe 0x403581
mov eax, dword [esi + 0x64]
xor edx, edx
test eax, eax
mov ecx, ebx
jbe 0x403573
imul eax, edi
mov ebp, dword [esp + 0x30]
add eax, edx
mov eax, dword [ebp + eax*4]
shr eax, 4
and al, 0xf
jbe 0x403563
movzx ax, al
shl eax, 0xc
or eax, 0xfff
mov word [ecx], ax
jmp 0x403568
mov word [ecx], 0
mov eax, dword [esi + 0x64]
add ecx, 2
inc edx
cmp edx, eax
jb 0x40353e
mov edx, dword [esp + 0x64]
mov eax, dword [esi + 0x68]
add ebx, edx
inc edi
cmp edi, eax
jb 0x403533
mov ecx, dword [esp + 0x24]
push 0
mov eax, dword [ecx]
push eax
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x20]
push edx
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4