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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x4feec0]
push ebx
push esi
push edi
test eax, eax
jle 0x404304
mov eax, dword [0x4feec4]
test eax, eax
jle 0x404304
fld qword [0x4feeb0]
fcomp qword [0x4feea0]
fnstsw ax
test ah, 0x41
jne 0x404304
fld qword [0x4feeb8]
fcomp qword [0x4feea8]
fnstsw ax
test ah, 0x41
jne 0x404304
mov esi, dword [ebp + 0xc]
push 1
mov eax, dword [esi]
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [0x442e64]
mov edx, dword [esi]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
mov dword [esp + 0x48], eax
call ebx
mov ecx, dword [esi]
mov dword [esp + 0x4c], eax
mov eax, dword [0x4ff2e0]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x4feea4]
mov edi, dword [ebp + 8]
mov dword [esp + 0x44], eax
mov eax, dword [0x4feea0]
push edx
push eax
push edi
call fcn.00402820
mov ecx, dword [0x4feeac]
mov edx, dword [0x4feea8]
push ecx
push edx
push edi
mov dword [esp + 0x44], eax
call fcn.00402850
mov ecx, dword [0x4feeb0]
mov dword [esp + 0x48], eax
mov eax, dword [0x4feeb4]
push eax
push ecx
push edi
call fcn.00402820
mov edx, dword [0x4feebc]
mov dword [esp + 0x58], eax
mov eax, dword [0x4feeb8]
push edx
push eax
push edi
call fcn.00402850
mov ecx, dword [0x4fb310]
add esp, 0x30
mov dword [esp + 0x38], eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esi]
mov edi, eax
push edi
push edx
call ebx
mov ecx, dword [esi]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x2c]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [0x4feecc]
mov eax, dword [0x4feec8]
mov ecx, dword [0x4feec0]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x38]
sub edx, ecx
lea eax, [esp + 0x84]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.004030f0
mov edx, dword [0x4feed4]
mov eax, dword [0x4feed0]
mov ecx, dword [0x4feec4]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x54]
sub edx, ecx
lea eax, [esp + 0x84]
push edx
lea ecx, [esp + 0x80]
push eax
push ecx
call fcn.004030f0
mov edx, dword [0x4feed8]
add esp, 0x30
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
mov eax, dword [esi]
push edi
push eax
mov dword [esp + 0x50], edi
call ebx
mov eax, dword [0x4feec4]
mov dword [esp + 0xc], 0
test eax, eax
jle 0x4042cd
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul qword [esp + 0x60]
fild dword [esp + 0xc]
fmul qword [esp + 0x58]
faddp st(1)
fiadd dword [esp + 0x30]
call sub.MSVCRT.dll__ftol
mov edi, eax
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
fadd qword [esp + 0x58]
call sub.MSVCRT.dll__ftol
mov ecx, dword [0x4ff6e4]
mov dword [esp + 0x1c], eax
sub eax, edi
mov edx, dword [0x4ff2dc]
imul eax, ecx
add ecx, edx
mov dword [esp + 0x14], 0
cdq
idiv ecx
add eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [0x4feec0]
test eax, eax
jle 0x4042b3
mov eax, dword [0x4310fc]
mov edx, dword [0x4310f8]
mov dword [esp + 0x84], eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x88]
mov dword [esp + 0x80], edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fmul qword [esp + 0x78]
fild dword [esp + 0x14]
fmul qword [esp + 0x50]
faddp st(1)
fiadd dword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
mov ebx, eax
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
fadd qword [esp + 0x50]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi]
push edx
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esp + 0x20]
push eax
push ebx
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [0x4feec0]
mov edi, dword [esp + 0x14]
imul eax, dword [esp + 0xc]
add eax, edi
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ecx + ecx*2]
lea edi, [eax + edx*2]
shl edi, 3
mov eax, dword [edi + 0x4ff6f0]
test eax, eax
jle 0x404297
mov eax, dword [0x442e60]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x4ff6e8]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0x74]
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi]
lea edx, [esp + 0x68]
push 0x25
push edx
lea eax, [edi + 0x4ff6f4]
push 0xffffffffffffffff
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404297
cmp dword [eax], 0
je 0x404297
mov edx, dword [edi + 0x4ff804]
mov ecx, dword [edi + 0x4ff7fc]
push eax
mov eax, dword [edi + 0x4ff800]
push 0
push 0
push edx
mov edx, dword [edi + 0x4ff7f8]
push eax
mov eax, dword [edi + 0x4ff6f0]
push ecx
push edx
lea ecx, [esp + 0x9c]
push eax
push ecx
call fcn.00407950
lea edi, [edi + 0x4ff808]
add esp, 0x24
cmp word [edi], 0
je 0x40422c
lea edx, [esp + 0x80]
push edi
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x80]
mov eax, edi
sub eax, ebx
push eax
push ecx
push esi
call fcn.00404a30
mov edx, dword [0x442e64]
mov eax, dword [esi]
add esp, 0xc
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x4ff2e0]
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push eax
push edi
push ecx
lea edx, [esp + 0x74]
push ebx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esi]
lea eax, [esp + 0x68]
push 0x25
push eax
lea ecx, [esp + 0x88]
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4feec0]
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4040c6
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
mov ecx, dword [0x4feec4]
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x40405a
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi]
push eax
push ecx
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x4c]
mov eax, dword [esi]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x40]
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]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret