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

Disassembly:
push 0xffffffffffffffff
push 0x445dd0
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.0043fb0b
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 1
call fcn.004020e0
mov dword [esp + 0x6c], 0x4487a0
mov esi, dword [esp + 0xa0]
xor ecx, ecx
mov byte [esp + 0x98], 2
mov dword [esp + 0x5c], 0x44872c
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 0x4034fb
mov eax, dword [esi]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call dword [eax + 0x50]
cmp esi, edi
je 0x40348f
mov edi, dword [esi + 4]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x60]
call fcn.0043fbc2
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.00402230
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x60]
call fcn.00402260
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.0043ff7c
jmp 0x40350d
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 0x403583
mov dword [esp + 0x10], ecx
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
cmp eax, edx
jle 0x403598
mov dword [esp + 0x10], eax
jmp 0x4035a4
cmp esi, ecx
mov dword [esp + 0x10], esi
jg 0x4035a4
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 0x4036f4
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.00429154
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
push eax
push 0
call fcn.00429154
lea edx, [esp + 0x58]
push eax
push edx
call edi
fld dword [esp + 0x14]
fmul dword [esp + 0x2c]
fadd dword [esp + 0x28]
call fcn.00429154
fld dword [esp + 0x14]
fmul dword [esp + 0x30]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.00429154
fld dword [esp + 0x14]
fmul dword [esp + 0x34]
mov bl, al
shl ebx, 8
fadd dword [esp + 0x38]
call fcn.00429154
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.004404b3
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.0044050a
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x54]
cmp eax, dword [edx]
jg 0x40373c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x40361c
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.00401d20
mov dword [esp + 0x3c], vtable.CGdiObject.0
mov dword [esp + 0x98], 7
lea ecx, [esp + 0x3c]
call fcn.0044050a
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.004404b3
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.0044050a
mov dword [esp + 0x5c], 0x44872c
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x98], 5
cmp eax, esi
je 0x4037fa
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.00402260
jmp 0x403802
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 4
call fcn.004021f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.0043fc2a
mov dword [esp + 0x3c], vtable.CGdiObject.0
mov dword [esp + 0x98], 6
jmp 0x403718