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

Disassembly:
push 0xffffffffffffffff
push 0x4391a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], vtable.CBrush.0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x98], edi
call fcn.00431fe9
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 1
call fcn.004083c0
mov dword [esp + 0x6c], 0x43cd70
mov esi, dword [esp + 0xa0]
xor ecx, ecx
mov byte [esp + 0x98], 2
mov dword [esp + 0x5c], 0x43cf1c
mov eax, dword [esi + 0xc]
mov dword [esp + 0x78], esi
cmp eax, edi
mov dword [esp + 0x74], edi
sete cl
cmp ecx, edi
mov dword [esp + 0x8c], ecx
je 0x407f7b
mov eax, dword [esi]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call dword [eax + 0x50]
cmp esi, edi
je 0x407f0f
mov edi, dword [esi + 4]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x60]
call fcn.004320a0
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
sub edx, ebx
push edx
mov edx, dword [esp + 0x80]
sub eax, edx
lea ecx, [esp + 0x70]
push eax
push esi
call fcn.00408430
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x60]
call fcn.00408460
mov edx, dword [esp + 0x80]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.0043245a
jmp 0x407f8d
mov edx, dword [esi + 4]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
xor eax, eax
xor ebx, ebx
mov al, byte [ebp + 0x4c]
mov bl, byte [ebp + 0x50]
mov dword [esp + 0x24], eax
sub ebx, eax
mov edi, dword [ebp + 0x4c]
xor eax, eax
mov al, byte [ebp + 0x4d]
xor ecx, ecx
mov cl, byte [ebp + 0x51]
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x28], eax
sub ecx, eax
mov eax, dword [ebp + 0x50]
shr edi, 0x10
shr eax, 0x10
and edi, 0xff
and eax, 0xff
sub eax, edi
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
mov byte [esp + 0x98], 3
sub ecx, edx
mov dword [esp + 0x1c], ebx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp esi, ecx
mov dword [esp + 0x10], esi
jg 0x408003
mov dword [esp + 0x10], ecx
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
cmp eax, edx
jle 0x408018
mov dword [esp + 0x10], eax
jmp 0x408024
cmp esi, ecx
mov dword [esp + 0x10], esi
jg 0x408024
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0xa4]
mov eax, dword [esp + 0x28]
fild dword [esp + 0x10]
fild dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
fdiv st(1)
fstp dword [esp + 0x20]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fdiv st(1)
fstp dword [esp + 0x34]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
xor eax, eax
test ecx, ecx
fdiv st(1)
mov dword [esp + 0x24], eax
fstp dword [esp + 0x30]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edi
fdiv st(1)
fstp dword [esp + 0x2c]
fstp st(0)
jle 0x408174
fild dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SetRect]
fstp dword [esp + 0x28]
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fild dword [esp + 0x1c]
fstp dword [esp + 0x38]
fild dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
inc eax
mov dword [esp + 0x1c], eax
inc ecx
fstp dword [esp + 0x14]
fild dword [esp + 0x1c]
push ecx
fmul dword [esp + 0x24]
call fcn.0041b6e8
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
push eax
push 0
call fcn.0041b6e8
lea edx, [esp + 0x58]
push eax
push edx
call edi
fld dword [esp + 0x14]
fmul dword [esp + 0x2c]
fadd dword [esp + 0x28]
call fcn.0041b6e8
fld dword [esp + 0x14]
fmul dword [esp + 0x30]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.0041b6e8
fld dword [esp + 0x14]
fmul dword [esp + 0x34]
mov bl, al
shl ebx, 8
fadd dword [esp + 0x38]
call fcn.0041b6e8
and eax, 0xff
or ebx, eax
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
call ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00432910
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x60]
push eax
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call fcn.00432967
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x54]
cmp eax, dword [edx]
jg 0x4081bc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x40809c
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.004082c0
mov dword [esp + 0x3c], vtable.CGdiObject.0
mov dword [esp + 0x98], 7
lea ecx, [esp + 0x3c]
call fcn.00432967
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 0xc
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
xor esi, esi
push edx
push esi
push eax
lea eax, [esp + 0x5c]
push eax
call edi
mov ebp, dword [ebp + 0x54]
push ebp
call ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00432910
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x4c]
neg eax
sbb eax, eax
and eax, ebx
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call fcn.00432967
mov dword [esp + 0x5c], 0x43cf1c
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x98], 5
cmp eax, esi
je 0x40827a
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x60]
lea eax, [esp + 0x5c]
sub ecx, esi
sub edx, edi
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
push esi
push edi
push eax
mov eax, dword [esp + 0x88]
push ecx
push edx
push esi
mov ecx, dword [eax + 4]
push edi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x5c]
push edx
call fcn.00408460
jmp 0x408282
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 4
call fcn.00404480
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.00432108
mov dword [esp + 0x3c], vtable.CGdiObject.0
mov dword [esp + 0x98], 6
jmp 0x408198