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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x5046c8]
push ebx
push esi
push edi
test eax, eax
je 0x403e90
mov esi, dword [ebp + 0xc]
push 1
mov eax, dword [esi]
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [0x442e68]
mov edx, dword [esi]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
mov dword [esp + 0x40], eax
call ebx
mov ecx, dword [esi]
mov dword [esp + 0x40], eax
mov eax, dword [0x4fe178]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 4
mov dword [esp + 0x48], eax
call fcn.004028a0
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
add esp, 4
push eax
call edi
push 2
mov dword [esp + 0x28], eax
call fcn.004028a0
add esp, 4
push eax
call edi
push 1
mov dword [esp + 0x2c], eax
call fcn.004028a0
add esp, 4
push eax
call edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
push edx
push eax
call ebx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x90]
push ecx
push ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [0x4fdd44]
mov eax, dword [0x4fdd40]
push edx
push eax
push ebx
call fcn.00402820
mov ecx, dword [0x4fdd4c]
mov edx, dword [0x4fdd48]
push ecx
push edx
push ebx
mov dword [esp + 0x6c], eax
call fcn.00402850
mov ecx, dword [0x4fdd50]
mov dword [esp + 0x70], eax
mov eax, dword [0x4fdd54]
push eax
push ecx
push ebx
call fcn.00402820
mov edx, dword [0x4fdd5c]
mov edi, eax
mov eax, dword [0x4fdd58]
push edx
push eax
push ebx
call fcn.00402850
mov dword [esp + 0x90], eax
call fcn.004030b0
mov ecx, dword [0x4fdd64]
mov dword [esp + 0x50], eax
push ecx
mov edx, dword [0x4fdd60]
mov ecx, dword [esp + 0x88]
mov eax, dword [0x4fb560]
push edx
sub edi, ecx
push eax
lea ecx, [esp + 0xc4]
push edi
lea edx, [esp + 0xc0]
push ecx
push edx
call fcn.004030f0
mov eax, dword [0x4fdd6c]
mov ecx, dword [0x4fdd68]
mov edx, dword [esp + 0xa0]
mov edi, dword [esp + 0x68]
add esp, 0x48
push eax
mov eax, dword [esp + 0x64]
push ecx
sub eax, edx
push edi
push eax
lea edx, [esp + 0x78]
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004030f0
fld qword [0x503858]
fadd qword [0x5046c0]
add esp, 0x10
fstp qword [esp]
push ebx
call fcn.00402820
mov dword [esp + 0x24], eax
add esp, 0xc
fild dword [esp + 0x18]
fadd qword [esp + 0x80]
call sub.MSVCRT.dll__ftol
test edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
jle 0x403d53
fild dword [esp + 0x58]
mov edi, 0x4fe180
fstp qword [esp + 0x48]
mov ecx, dword [edi]
push 0x517ba0
push ecx
call fcn.004035a0
add esp, 8
test eax, eax
je 0x403c2e
mov edx, dword [esp + 0x28]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi]
push 0x517ba0
push ecx
call fcn.004034f0
add esp, 8
test eax, eax
je 0x403c4c
mov edx, dword [esp + 0x2c]
mov eax, dword [esi]
push edx
push eax
jmp 0x403c54
mov ecx, dword [esp + 0x24]
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [esp + 0x68]
fild dword [esp + 0x10]
fmul qword [esp + 0x30]
faddp st(1)
fadd qword [esp + 0x48]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd qword [esp + 0x30]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x64], eax
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
lea edx, [esp + 0xa0]
push 0x4310f8
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [0x43199c]
mov ecx, dword [edi + 0x114]
mov edx, dword [edi + 0x110]
push 0x517ba0
push eax
mov eax, dword [edi + 0x10c]
push 0
push ecx
mov ecx, dword [edi + 0x108]
push edx
mov edx, dword [edi]
push eax
push ecx
lea eax, [esp + 0xc4]
push edx
push eax
call fcn.00407950
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add esp, 0x2c
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esi]
lea eax, [esp + 0x70]
push 0x25
push eax
lea ecx, [esp + 0xa8]
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add edi, 0x118
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x403c0c
mov edi, ecx
mov eax, dword [0x442e80]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x4fb310]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [0x5038a4]
mov edx, dword [0x5038a0]
push ecx
push edx
push ebx
call fcn.00402820
mov ecx, dword [esp + 0x20]
add esp, 0xc
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], eax
mov eax, dword [0x430fd4]
cmp eax, 0x20
je 0x403e3f
mov ecx, dword [esi]
push 2
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
xor eax, eax
test edi, edi
mov dword [esp + 0x10], eax
jle 0x403e3f
fild dword [esp + 0x58]
mov ebx, 0x4fe184
fstp qword [esp + 0x48]
inc eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [esp + 0x68]
fild dword [esp + 0x10]
fmul qword [esp + 0x30]
faddp st(1)
fadd qword [esp + 0x48]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd qword [esp + 0x30]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi]
lea eax, [esp + 0x70]
push 0x24
push eax
push 0xffffffffffffffff
push ebx
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x1c]
add ebx, 0x118
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x403dce
mov edx, dword [esp + 0x40]
mov eax, dword [esi]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call edi
mov ecx, dword [esp + 0x38]
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x44]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x3c]
mov eax, dword [esi]
push edx
push eax
call edi
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret