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

Disassembly:
push 0xffffffffffffffff
push 0x429070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], vtable.CBrush.0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x98], ebx
call fcn.00423b24
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 1
call fcn.00401a60
mov dword [esp + 0x6c], 0x42b7c0
mov esi, dword [esp + 0xa0]
xor ecx, ecx
mov byte [esp + 0x98], 2
mov dword [esp + 0x5c], 0x42b74c
mov eax, dword [esi + 0xc]
mov dword [esp + 0x78], esi
cmp eax, ebx
mov dword [esp + 0x74], ebx
sete cl
cmp ecx, ebx
mov dword [esp + 0x8c], ecx
je 0x4014eb
mov eax, dword [esi]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call dword [eax + 0x50]
cmp esi, ebx
je 0x40147f
mov ebx, dword [esi + 4]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x60]
call fcn.00423bdb
mov edx, dword [esp + 0x88]
mov ebp, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
sub edx, ebp
push edx
mov edx, dword [esp + 0x80]
sub eax, edx
lea ecx, [esp + 0x70]
push eax
push esi
call fcn.00401b90
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x60]
call fcn.00401bc0
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.00423fab
jmp 0x4014fd
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 ecx, ecx
xor eax, eax
mov cl, byte [edi + 0x54]
mov al, byte [edi + 0x50]
mov ebp, ecx
mov dword [esp + 0x24], eax
sub ebp, eax
mov ebx, dword [edi + 0x50]
xor eax, eax
xor edx, edx
mov al, byte [edi + 0x51]
mov dl, byte [edi + 0x55]
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x28], eax
sub edx, eax
mov eax, dword [edi + 0x54]
mov esi, edx
shr ebx, 0x10
shr eax, 0x10
and ebx, 0xff
and eax, 0xff
sub eax, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov byte [esp + 0x98], 3
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
mov dword [esp + 0x1c], ebp
sub ecx, edx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp esi, ecx
mov dword [esp + 0x10], esi
jg 0x401575
mov dword [esp + 0x10], ecx
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
cmp eax, edx
jle 0x40158a
mov dword [esp + 0x10], eax
jmp 0x401596
cmp esi, ecx
mov dword [esp + 0x10], esi
jg 0x401596
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x28]
fild dword [esp + 0x10]
fild dword [esi + 8]
mov eax, dword [esp + 0x24]
fdiv st(1)
fstp dword [esp + 0x20]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x24], eax
fdiv st(1)
fstp dword [esp + 0x34]
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
fdiv st(1)
fstp dword [esp + 0x30]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ebx
fdiv st(1)
fstp dword [esp + 0x2c]
fstp st(0)
jle 0x4016f0
fild dword [esp + 0x14]
mov ebp, 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 edx, dword [esi + 0xc]
inc eax
mov dword [esp + 0x1c], eax
inc edx
fstp dword [esp + 0x14]
fild dword [esp + 0x1c]
push edx
fmul dword [esp + 0x24]
call fcn.0040e950
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
push eax
push 0
call fcn.0040e950
push eax
lea eax, [esp + 0x5c]
push eax
call ebp
fld dword [esp + 0x14]
fmul dword [esp + 0x2c]
fadd dword [esp + 0x28]
call fcn.0040e950
fld dword [esp + 0x14]
fmul dword [esp + 0x30]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.0040e950
fld dword [esp + 0x14]
fmul dword [esp + 0x34]
mov bl, al
shl ebx, 8
fadd dword [esp + 0x38]
call fcn.0040e950
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.00424425
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x4c]
and eax, edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call fcn.0042447c
mov eax, dword [esp + 0xa8]
mov eax, dword [eax]
test eax, eax
je 0x401738
mov ecx, dword [esp + 0x54]
cmp ecx, eax
jg 0x401842
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x40160e
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.00401940
mov dword [esp + 0x3c], vtable.CGdiObject.0
mov dword [esp + 0x98], 9
lea ecx, [esp + 0x3c]
call fcn.0042447c
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
push edx
push 0
lea eax, [esp + 0x58]
push 0
push eax
call ebp
mov edi, dword [edi + 0x58]
push edi
call ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00424425
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x4c]
neg eax
sbb eax, eax
and eax, edi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call fcn.0042447c
mov dword [esp + 0x5c], 0x42b74c
mov eax, dword [esp + 0x8c]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x98], 5
je 0x401800
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push 0xcc0020
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov edx, dword [esp + 0x98]
sub edx, eax
push edx
mov edx, dword [esp + 0x98]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x98]
call fcn.00401c30
mov eax, dword [esp + 0x74]
cmp eax, esi
jne 0x4017f0
xor eax, eax
push eax
mov eax, dword [esp + 0x64]
push eax
call fcn.00423d1c
jmp 0x401808
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x64]
push eax
call fcn.00423d1c
jmp 0x401808
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 4
call fcn.00401b50
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.00423c59
mov dword [esp + 0x3c], vtable.CGdiObject.0
mov dword [esp + 0x98], 6
jmp 0x401714
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
push eax
push 0
push ecx
lea ecx, [esp + 0x5c]
push ecx
call ebp
mov edi, dword [edi + 0x58]
push edi
call ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00424425
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
lea edx, [esp + 0x4c]
and eax, ebx
push eax
mov eax, dword [esp + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call fcn.0042447c
mov dword [esp + 0x5c], 0x42b74c
mov ecx, dword [esp + 0x8c]
xor eax, eax
cmp ecx, eax
mov byte [esp + 0x98], 8
je 0x4018f2
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push 0xcc0020
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov edx, dword [esp + 0x98]
sub edx, eax
push edx
mov edx, dword [esp + 0x98]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x98]
call fcn.00401c30
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x5c]
push eax
call fcn.00401bc0
jmp 0x4018fa
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 7
call fcn.00401b50
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.00423c59
lea ecx, [esp + 0x3c]
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x3c], vtable.CBrush.0
call fcn.00401a90
jmp 0x40171d