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

Disassembly:
jmp 0x413590
push 0xffffffffffffffff
push 0x4b6c60
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.00488683
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 1
call fcn.00401acd
mov dword [esp + 0x6c], 0x4c0084
mov esi, dword [esp + 0xa0]
xor ecx, ecx
mov byte [esp + 0x98], 2
mov dword [esp + 0x5c], 0x4c0980
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 0x41369b
mov eax, dword [esi]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call dword [eax + 0x50]
cmp esi, edi
je 0x41362f
mov edi, dword [esi + 4]
push edi
call dword [0x4ed14c]
push eax
lea ecx, [esp + 0x60]
call fcn.0048873a
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.00401d9d
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x60]
call fcn.004016a4
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.00488cbf
jmp 0x4136ad
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 0x413723
mov dword [esp + 0x10], ecx
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
cmp eax, edx
jle 0x413738
mov dword [esp + 0x10], eax
jmp 0x413744
cmp esi, ecx
mov dword [esp + 0x10], esi
jg 0x413744
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 0x413894
fild dword [esp + 0x14]
mov edi, dword [0x4eda14]
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.004507f4
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
push eax
push 0
call fcn.004507f4
lea edx, [esp + 0x58]
push eax
push edx
call edi
fld dword [esp + 0x14]
fmul dword [esp + 0x2c]
fadd dword [esp + 0x28]
call fcn.004507f4
fld dword [esp + 0x14]
fmul dword [esp + 0x30]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.004507f4
fld dword [esp + 0x14]
fmul dword [esp + 0x34]
mov bl, al
shl ebx, 8
fadd dword [esp + 0x38]
call fcn.004507f4
and eax, 0xff
or ebx, eax
push ebx
mov ebx, dword [0x4ed144]
call ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00489a21
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 [0x4eda0c]
lea ecx, [esp + 0x3c]
call fcn.00489a78
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x54]
cmp eax, dword [edx]
jg 0x4138dc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4137bc
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.00401933
mov dword [esp + 0x3c], vtable.CGdiObject.0
mov dword [esp + 0x98], 7
lea ecx, [esp + 0x3c]
call fcn.00489a78
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.00489a21
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 [0x4eda0c]
lea ecx, [esp + 0x3c]
call fcn.00489a78
mov dword [esp + 0x5c], 0x4c0980
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x98], 5
cmp eax, esi
je 0x41399a
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 [0x4ed150]
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x5c]
push edx
call fcn.004016a4
jmp 0x4139a2
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 4
call fcn.00401fb9
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.004887b8
mov dword [esp + 0x3c], vtable.CGdiObject.0
mov dword [esp + 0x98], 6
jmp 0x4138b8