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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a3318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
fild dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
push edi
fdiv qword [esi + 0x80]
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x42222c
fadd qword [0x4aa708]
call fcn.00470a50
mov ebx, eax
mov dword [esp + 0x28], ebx
jmp 0x42223d
fsub qword [0x4aa708]
call fcn.00470a50
mov dword [esp + 0x28], eax
mov ebx, eax
fild dword [ebp + 0xc]
fdiv qword [esi + 0x80]
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x42225b
fadd qword [0x4aa708]
jmp 0x422261
fsub qword [0x4aa708]
call fcn.00470a50
mov edi, eax
mov dword [esp + 0x20], edi
call fcn.004878ba
test eax, eax
je 0x422282
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov dword [esp + 0x1c], eax
jmp 0x42228a
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x560], 0xa
jne 0x4222cc
mov eax, dword [esi + 0x2dc]
test eax, eax
je 0x4222cc
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x4222cc
mov ecx, dword [ebp + 8]
push ebx
push edi
push ecx
mov ecx, esi
call fcn.00437e60
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x58]
call fcn.0048a2ae
mov eax, dword [ebp + 8]
mov dword [esp + 0x80], 0
test eax, eax
jne 0x4222eb
xor eax, eax
jmp 0x4222f1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [0x4a91e0]
push eax
lea ecx, [esp + 0x5c]
call fcn.0048a365
push 8
lea ecx, [esp + 0x5c]
call fcn.0048a4bd
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], vtable.CBrush.0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x80], 1
cmp dword [eax + 0x560], 0x1e
jne 0x42233e
mov eax, dword [esi + 0xf8]
jmp 0x422344
mov eax, dword [esi + 0xfc]
push eax
call dword [0x4a91a4]
push eax
lea ecx, [esp + 0x4c]
call fcn.0048aea7
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0048a4f9
mov edx, dword [esi + 0x94]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
push edx
push eax
call dword [0x4a91e4]
push 0xd
lea ecx, [esp + 0x5c]
mov dword [esp + 0x34], eax
call fcn.0048a5ca
lea ecx, [esp + 0x58]
mov dword [esp + 0x3c], eax
push ecx
mov ecx, esi
call fcn.00424aa0
xor ecx, ecx
mov eax, vtable.CRgn.0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xd8]
mov byte [esp + 0x80], 3
lea edx, [eax + ebx]
lea ecx, [eax + edi]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ecx
mov ecx, ebx
mov edx, edi
sub ecx, eax
sub edx, eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push edx
call dword [0x4a91dc]
push eax
lea ecx, [esp + 0x44]
call fcn.0048aea7
lea eax, [esi + 0xc8]
test eax, eax
je 0x422409
mov ecx, dword [esi + 0xcc]
lea eax, [esi + 0xc8]
test ecx, ecx
jne 0x422445
mov eax, dword [esi + 0xd8]
lea ecx, [eax + ebx]
lea edx, [eax + edi]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
mov ecx, ebx
mov edx, edi
sub ecx, eax
sub edx, eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push edx
call dword [0x4a91dc]
push eax
lea ecx, [esi + 0xc8]
call fcn.0048aea7
jmp 0x422498
test eax, eax
jne 0x42244d
xor edx, edx
jmp 0x422450
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x40]
neg eax
sbb eax, eax
push 4
and eax, ecx
push edx
push eax
push ecx
call dword [0x4a91cc]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x40]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esi + 0xc8]
test ecx, ecx
je 0x422487
mov ecx, dword [esi + 0xcc]
push 2
push eax
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
call dword [0x4a91cc]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x560], 0x1e
je 0x4229fc
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x4229fc
mov eax, dword [esi + 0xd8]
test eax, eax
mov dword [esp + 0x1c], eax
jl 0x422a26
mov eax, dword [esi + 0xd8]
test eax, eax
mov dword [esp + 0x24], eax
jl 0x4229eb
lea ecx, [eax + ebx]
sub ebx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ebx
jmp 0x4224ee
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4224fe
test eax, eax
je 0x42288f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
push ebx
lea edi, [edx + eax]
push edi
push ecx
call dword [0x4a91d8]
test eax, eax
je 0x422627
mov edx, dword [esp + 0x5c]
push ebx
push edi
push edx
call dword [0x4a91c0]
fld qword [0x4aa6f0]
fsub qword [esi + 0xd0]
fild dword [esi + 0xe8]
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
fmul qword [esi + 0xd0]
mov dword [esp + 0x10], ecx
and edx, 0xff
fild dword [esp + 0x10]
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0xc], edx
fmul st(2)
mov dword [esp + 0x18], eax
faddp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x422586
fadd qword [0x4aa708]
jmp 0x42258c
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esi + 0xec]
mov dword [esp + 0x10], eax
fmul qword [esi + 0xd0]
fild dword [esp + 0xc]
fmul st(2)
faddp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x4225be
fadd qword [0x4aa708]
jmp 0x4225c4
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esi + 0xf0]
mov dword [esp + 0xc], eax
fmul qword [esi + 0xd0]
fild dword [esp + 0x18]
fmul st(2)
faddp st(1)
fstp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x4225f8
fadd qword [0x4aa708]
jmp 0x4225fe
fsub qword [0x4aa708]
call fcn.00470a50
xor ecx, ecx
mov edx, dword [esp + 0x5c]
mov ch, al
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0xc]
and eax, 0xff
shl ecx, 8
or eax, ecx
push eax
push ebx
push edi
push edx
call dword [0x4a90fc]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42288f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
push eax
push edi
push ecx
call dword [0x4a91d8]
test eax, eax
je 0x42275d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
push edx
push edi
push eax
call dword [0x4a91c0]
fld qword [0x4aa6f0]
fsub qword [esi + 0xd0]
fild dword [esi + 0xe8]
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
fmul qword [esi + 0xd0]
mov dword [esp + 0x10], ecx
and edx, 0xff
fild dword [esp + 0x10]
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0xc], edx
fmul st(2)
mov dword [esp + 0x18], eax
faddp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x4226b8
fadd qword [0x4aa708]
jmp 0x4226be
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esi + 0xec]
mov dword [esp + 0x10], eax
fmul qword [esi + 0xd0]
fild dword [esp + 0xc]
fmul st(2)
faddp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x4226f0
fadd qword [0x4aa708]
jmp 0x4226f6
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esi + 0xf0]
mov dword [esp + 0xc], eax
fmul qword [esi + 0xd0]
fild dword [esp + 0x18]
fmul st(2)
faddp st(1)
fstp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x42272a
fadd qword [0x4aa708]
jmp 0x422730
fsub qword [0x4aa708]
call fcn.00470a50
xor ecx, ecx
mov edx, dword [esp + 0x14]
mov ch, al
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0xc]
and eax, 0xff
shl ecx, 8
or eax, ecx
push eax
mov eax, dword [esp + 0x60]
push edx
push edi
push eax
call dword [0x4a90fc]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4229c4
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov edx, eax
push ebx
sub edi, edx
push edi
push ecx
call dword [0x4a91d8]
test eax, eax
je 0x42288f
mov edx, dword [esp + 0x5c]
push ebx
push edi
push edx
call dword [0x4a91c0]
fld qword [0x4aa6f0]
fsub qword [esi + 0xd0]
fild dword [esi + 0xe8]
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
fmul qword [esi + 0xd0]
mov dword [esp + 0x10], ecx
and edx, 0xff
fild dword [esp + 0x10]
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0xc], edx
fmul st(2)
mov dword [esp + 0x18], eax
faddp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x4227ee
fadd qword [0x4aa708]
jmp 0x4227f4
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esi + 0xec]
mov dword [esp + 0x10], eax
fmul qword [esi + 0xd0]
fild dword [esp + 0xc]
fmul st(2)
faddp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x422826
fadd qword [0x4aa708]
jmp 0x42282c
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esi + 0xf0]
mov dword [esp + 0xc], eax
fmul qword [esi + 0xd0]
fild dword [esp + 0x18]
fmul st(2)
faddp st(1)
fstp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x422860
fadd qword [0x4aa708]
jmp 0x422866
fsub qword [0x4aa708]
call fcn.00470a50
xor ecx, ecx
mov edx, dword [esp + 0x5c]
mov ch, al
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0xc]
and eax, 0xff
shl ecx, 8
or eax, ecx
push eax
push ebx
push edi
push edx
call dword [0x4a90fc]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
sub edi, edx
push eax
push edi
push ecx
call dword [0x4a91d8]
test eax, eax
je 0x4229c4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
push edx
push edi
push eax
call dword [0x4a91c0]
fld qword [0x4aa6f0]
fsub qword [esi + 0xd0]
fild dword [esi + 0xe8]
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
fmul qword [esi + 0xd0]
mov dword [esp + 0x10], ecx
and edx, 0xff
fild dword [esp + 0x10]
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0xc], edx
fmul st(2)
mov dword [esp + 0x18], eax
faddp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x42291e
fadd qword [0x4aa708]
jmp 0x422924
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esi + 0xec]
mov ebx, eax
fmul qword [esi + 0xd0]
fild dword [esp + 0xc]
fmul st(2)
faddp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x422954
fadd qword [0x4aa708]
jmp 0x42295a
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esi + 0xf0]
mov dword [esp + 0xc], eax
fmul qword [esi + 0xd0]
fild dword [esp + 0x18]
fmul st(2)
faddp st(1)
fstp st(1)
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x42298e
fadd qword [0x4aa708]
jmp 0x422994
fsub qword [0x4aa708]
call fcn.00470a50
xor ecx, ecx
mov edx, dword [esp + 0x14]
mov ch, al
and ebx, 0xff
mov cl, byte [esp + 0xc]
shl ecx, 8
or ecx, ebx
mov eax, ecx
push eax
mov eax, dword [esp + 0x60]
push edx
push edi
push eax
call dword [0x4a90fc]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
dec eax
inc ebx
dec edx
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], edx
jge 0x4224ea
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jns 0x4224c9
jmp 0x422a26
mov eax, dword [esi + 0xd8]
mov ecx, edi
sub ecx, eax
lea edx, [eax + edi]
mov dword [esp + 0x70], edx
mov edx, ebx
sub edx, eax
add eax, ebx
push eax
mov eax, dword [esp + 0x74]
push eax
push edx
push ecx
mov ecx, dword [esp + 0x6c]
push ecx
call dword [0x4a9060]
lea ecx, [esp + 0x40]
call fcn.0048aefe
mov edx, dword [esi + 0x2e4]
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fmul qword [esi + 0x80]
fcom qword [0x4aa6f8]
fld st(0)
fnstsw ax
test ah, 1
jne 0x422a5a
fadd qword [0x4aa708]
jmp 0x422a60
fsub qword [0x4aa708]
call fcn.00470a50
fcom qword [0x4aa6f8]
mov dword [esp + 0x24], eax
fnstsw ax
test ah, 1
jne 0x422a7e
fadd qword [0x4aa708]
jmp 0x422a84
fsub qword [0x4aa708]
call fcn.00470a50
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xd8]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul qword [esi + 0x80]
fcom qword [0x4aa6f8]
fld st(0)
fnstsw ax
test ah, 1
jne 0x422ab8
fadd qword [0x4aa708]
jmp 0x422abe
fsub qword [0x4aa708]
call fcn.00470a50
fcom qword [0x4aa6f8]
mov esi, eax
fnstsw ax
test ah, 1
jne 0x422ada
fadd qword [0x4aa708]
jmp 0x422ae0
fsub qword [0x4aa708]
call fcn.00470a50
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
sub ebx, ecx
sub edi, ecx
lea ecx, [esp + 0x58]
push 0xcc0020
neg ecx
sbb ecx, ecx
and ecx, edx
mov edx, dword [esp + 0x2c]
push edx
push edx
mov edx, dword [esp + 0x2c]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 8]
sub ecx, esi
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [0x4a91c4]
push 0
lea ecx, [esp + 0x5c]
call fcn.0048a8bf
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x5c]
push edx
push eax
call dword [0x4a91e4]
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0048a4f9
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x58]
push edx
call fcn.0048a4f9
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x58]
push eax
call fcn.0048a5ca
lea ecx, [esp + 0x58]
call fcn.0048a3cd
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x80], 4
call fcn.0048aefe
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 5
call fcn.0048aefe
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 6
call fcn.0048aefe
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], 0xffffffff
call fcn.0048a3e3
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc