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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [0x442e68]
mov edx, dword [ebx]
push ecx
push edx
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx]
mov dword [esp + 0x5c], eax
mov eax, dword [0x4fe178]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x4fdd44]
mov edi, dword [ebp + 8]
mov dword [esp + 0x54], eax
mov eax, dword [0x4fdd40]
push edx
push eax
push edi
call fcn.00402820
mov ecx, dword [0x4fdd4c]
mov edx, dword [0x4fdd48]
push ecx
push edx
push edi
mov dword [esp + 0x54], eax
call fcn.00402850
mov ecx, dword [0x4fdd50]
mov dword [esp + 0x58], eax
mov eax, dword [0x4fdd54]
push eax
push ecx
push edi
call fcn.00402820
mov edx, dword [0x4fdd5c]
mov dword [esp + 0x68], eax
mov eax, dword [0x4fdd58]
push edx
push eax
push edi
call fcn.00402850
mov ecx, dword [0x4fb310]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
add esp, 0x30
mov dword [esp + 0x48], eax
push ecx
call edi
mov edx, dword [ebx]
mov esi, eax
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x3c]
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [0x442dc8]
mov esi, dword [edx*4 + 0x4fb560]
mov dword [esp + 0x14], esi
call fcn.004030b0
mov ecx, dword [0x4fdd60]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [0x4fdd64]
push eax
push ecx
mov ecx, dword [esp + 0x44]
push esi
sub edx, ecx
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.004030f0
mov edx, dword [0x4fdd6c]
mov eax, dword [0x4fdd68]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x64]
sub edx, ecx
lea eax, [esp + 0x9c]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.004030f0
mov edx, dword [0x4fdd70]
add esp, 0x30
push edx
call edi
push 2
mov dword [esp + 0x2c], eax
call fcn.004028a0
add esp, 4
push eax
call edi
push 1
mov dword [esp + 0x30], eax
call fcn.004028a0
add esp, 4
push eax
call edi
test esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], 0
jle 0x4039da
lea eax, [esi - 1]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fmul qword [esp + 0x70]
fild dword [esp + 0xc]
fmul qword [esp + 0x68]
faddp st(1)
fiadd dword [esp + 0x3c]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fadd qword [esp + 0x68]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jle 0x4039c1
mov eax, dword [0x44312c]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
sub eax, edx
add eax, ecx
lea esi, [edi*8]
sub esi, edi
lea ecx, [eax + eax*4]
lea esi, [esi + esi*4]
lea edx, [ecx + ecx*4]
shl esi, 3
lea ecx, [eax + edx*4]
lea edx, [eax + ecx*2]
mov ecx, dword [esi + 0x4fe180]
shl edx, 4
lea eax, [edx + 0x443170]
push eax
push ecx
call fcn.004035a0
add esp, 8
test eax, eax
je 0x403827
mov edx, dword [esp + 0x2c]
jmp 0x40386f
mov eax, dword [0x44312c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
sub eax, ecx
add eax, edx
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*4]
lea eax, [eax + edx*2]
mov edx, dword [esi + 0x4fe180]
shl eax, 4
lea ecx, [eax + 0x443170]
push ecx
push edx
call fcn.004034f0
add esp, 8
test eax, eax
je 0x40386b
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx]
push eax
push ecx
jmp 0x403873
mov edx, dword [esp + 0x28]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
inc edi
mov dword [esp + 0x38], edi
fild dword [esp + 0x38]
fmul qword [esp + 0x78]
fild dword [esp + 0x10]
fmul qword [esp + 0x60]
faddp st(1)
fiadd dword [esp + 0x40]
call sub.MSVCRT.dll__ftol
mov edi, eax
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fadd qword [esp + 0x60]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
push eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx]
push ecx
push edi
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x518598]
cmp ecx, eax
jge 0x4039a9
mov eax, dword [0x442dc8]
test eax, eax
jne 0x4039a9
mov eax, dword [0x4310fc]
mov edx, dword [0x4310f8]
mov dword [esp + 0x94], eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x98]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [0x44312c]
mov ecx, dword [esp + 0x14]
sub eax, edx
add eax, ecx
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*4]
lea eax, [eax + edx*2]
mov edx, dword [esi + 0x4fe294]
shl eax, 4
lea ecx, [eax + 0x443170]
mov eax, dword [esi + 0x4fe290]
push ecx
mov ecx, dword [esi + 0x4fe28c]
push 0
push 0
push edx
mov edx, dword [esi + 0x4fe288]
push eax
mov eax, dword [esi + 0x4fe180]
push ecx
push edx
lea ecx, [esp + 0xac]
push eax
push ecx
call fcn.00407950
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
add esp, 0x24
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx]
lea ecx, [esp + 0x80]
push 0x25
push ecx
lea edx, [esp + 0x98]
push 0xffffffffffffffff
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x4037d8
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
dec edx
cmp eax, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], edx
jl 0x40378d
mov ecx, dword [esp + 0x58]
mov edx, dword [ebx]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
call esi
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov ecx, dword [esp + 0x2c]
push ecx
call edi
mov edx, dword [esp + 0x24]
push edx
call edi
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebx]
push eax
push ecx
call esi
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x54]
mov edx, dword [ebx]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret