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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10122e75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
xor eax, eax
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], vtable.CPen.0
push 0x6400
push 1
push eax
mov dword [esp + 0x98], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x5c]
call fcn.1011a560
test eax, eax
je 0x1001a695
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp + 0x10]
cdq
sub eax, edx
mov edi, eax
lea eax, [esp + 0x58]
sar ebx, 1
sar edi, 1
push eax
mov ecx, esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x18], edi
call fcn.1011a63c
push edi
push 0
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
mov dword [esp + 0x60], eax
call fcn.1011a0e3
mov edx, dword [ebp + 0xc]
push edi
push edx
mov ecx, esi
call fcn.10119e11
push 0
push ebx
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.1011a0e3
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
mov ecx, esi
call fcn.10119e11
push 0x1014281c
lea ecx, [esp + 0x34]
call fcn.10002bc0
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 6
lea edx, [esp + 0x34]
push edx
push esi
mov ecx, edi
mov byte [esp + 0x98], 1
call dword [eax + 0x18]
push eax
lea ecx, [esp + 0x78]
call fcn.10062c50
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x8c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001a337
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x1014281c
lea ecx, [esp + 0x30]
call fcn.10002bc0
mov edx, dword [edi]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov byte [esp + 0x94], 4
call dword [edx + 0x18]
mov ecx, eax
call fcn.100613b0
mov ecx, eax
call fcn.10062c00
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x8c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001a399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
fild dword [ebp + 0xc]
mov eax, dword [esp + 0x34]
xor edi, edi
mov dword [esp + 0x10], 0
fst dword [esp + 0x2c]
mov dword [esp + 0x24], edi
fdiv dword [eax + 0x168]
mov dword [esp + 0x20], 0x3dcccccd
mov dword [esp + 0x3c], 0x10142814
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fcomp dword [0x10142810]
fnstsw ax
test ah, 0x41
jne 0x1001a3ed
mov dword [esp + 0x20], 0x3c23d70a
mov dword [esp + 0x3c], 0x10142808
fld dword [esp + 0x20]
fmul dword [esp + 0x18]
fdivr dword [0x10142804]
call fcn.100f6c34
mov ecx, eax
add ecx, 3
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
cmp eax, 1
mov dword [esp + 0x38], eax
jg 0x1001a429
mov dword [esp + 0x38], 1
fld dword [0x1013e7f4]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x1001a57c
jmp 0x1001a450
mov edi, dword [esp + 0x24]
jmp 0x1001a450
mov ecx, dword [esp + 0x34]
fld dword [esp + 0x10]
fadd dword [ecx + 0x16c]
mov eax, edi
cdq
mov ecx, 0xa
idiv ecx
mov ebx, 2
fmul dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
fstp dword [esp + 0x28]
test edx, edx
jne 0x1001a486
mov ebx, 4
mov dword [esp + 0x1c], ebx
mov eax, edi
cdq
idiv dword [esp + 0x38]
test edx, edx
jne 0x1001a521
call fcn.10111836
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
fld dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
sub esp, 8
fstp qword [esp]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x9c], 5
call fcn.10009090
fld dword [esp + 0x38]
mov edi, dword [esp + 0x50]
mov eax, dword [edi - 0xc]
mov edx, dword [esp + 0x24]
mov ecx, dword [esi]
add esp, 0x10
push eax
mov eax, dword [esp + 0x48]
sub edx, ebx
sub edx, eax
push edi
push edx
mov dword [esp + 0x54], ecx
call fcn.100f6c34
push eax
mov eax, dword [esp + 0x58]
mov ecx, esi
call dword [eax + 0x5c]
add edi, 0xfffffff0
mov byte [esp + 0x8c], 3
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1001a51d
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ebx, dword [esp + 0x1c]
fld dword [esp + 0x28]
call fcn.100f6c34
mov edi, eax
mov eax, dword [esp + 0x14]
lea ecx, [ebx + eax]
push ecx
push edi
lea edx, [esp + 0x68]
push edx
mov ecx, esi
call fcn.1011a0e3
mov eax, dword [esp + 0x14]
sub eax, ebx
push eax
push edi
mov ecx, esi
call fcn.10119e11
fld dword [esp + 0x20]
fadd dword [esp + 0x10]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
fstp dword [esp + 0x10]
fld dword [esp + 0x28]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jnp 0x1001a440
mov ebx, dword [esp + 0x50]
push 0
mov ecx, esi
call fcn.10119e46
fild dword [ebp + 0x10]
mov eax, dword [esp + 0x44]
cdq
fmul dword [0x10142800]
sub eax, edx
sar eax, 1
mov dword [esp + 0x50], eax
fstp dword [esp + 0x48]
add ebx, 2
fild dword [esp + 0x14]
mov dword [esp + 0x10], 0xc1200000
mov dword [esp + 0x38], ebx
fstp dword [esp + 0x40]
fild dword [esp + 0x50]
fstp dword [esp + 0x3c]
mov edi, edi
fld dword [esp + 0x10]
fmul dword [esp + 0x48]
fstp dword [esp + 0x50]
call fcn.10111836
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x44], eax
fld dword [esp + 0x10]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x4c]
push 0x10142814
push eax
mov byte [esp + 0x9c], 6
call fcn.10009090
fld dword [esp + 0x50]
mov edi, dword [esp + 0x54]
fsub dword [esp + 0x60]
mov eax, dword [edi - 0xc]
mov ebx, dword [esi]
fsub dword [esp + 0x4c]
add esp, 0x10
push eax
push edi
call fcn.100f6c34
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov ecx, esi
call dword [ebx + 0x5c]
add edi, 0xfffffff0
mov byte [esp + 0x8c], 3
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1001a64c
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
fld dword [esp + 0x10]
fadd dword [0x101427fc]
fst dword [esp + 0x10]
fcomp dword [0x101427f8]
fnstsw ax
test ah, 5
jnp 0x1001a5c0
push esi
lea ecx, [esp + 0x6c]
call fcn.1005fc00
mov ecx, dword [esi + 4]
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c], 0
call fcn.1005fbf0
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], vtable.CGdiObject.0
mov dword [esp + 0x8c], 0xffffffff
call fcn.1011a5b7
mov ecx, dword [esp + 0x84]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10