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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4f9978
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x530790]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
cmp dword [ebp + 0x14], 0
je 0x4180c7
cmp dword [ebp + 0x18], 0
je 0x4180c7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
test dl, 1
je 0x417ad2
inc eax
mov dword [esp + 0x60], eax
mov edx, esi
sub edx, edi
test dl, 1
je 0x417ae0
inc esi
mov dword [esp + 0x5c], esi
mov edx, esi
mov ebx, eax
sub edx, edi
sub ebx, ecx
cmp edx, ebx
jge 0x417af8
mov eax, ecx
sub eax, edi
add eax, esi
mov dword [esp + 0x60], eax
jmp 0x417b02
mov esi, edi
sub esi, ecx
add esi, eax
mov dword [esp + 0x5c], esi
sub eax, ecx
neg ecx
sub esi, edi
push ecx
mov dword [esp + 0x84], eax
neg edi
push edi
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x88], esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
add ecx, eax
sub esi, eax
mov dword [esp + 0x54], ecx
add ecx, esi
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
add edx, eax
fld qword [0x5148e8]
sub edi, eax
mov dword [esp + 0x58], edx
fmul st(1), st(0)
add edx, edi
fxch st(1)
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x64]
fstp dword [esp + 0x30]
xor ebx, ebx
push ecx
fimul dword [esp + 0x1c]
push ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ebx
fstp dword [esp + 0x20]
fld dword [esp + 0x38]
fstp dword [esp + 0x74]
fld dword [esp + 0x20]
fstp dword [esp + 0x78]
call sub.gdiplus.dll_GdipCreatePath
mov dword [esp + 0x68], eax
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x104], ebx
push ebx
mov dword [esp + 0x94], ebx
call sub.gdiplus.dll_GdipCreatePath
mov dword [esp + 0x90], eax
lea eax, [esp + 0x9c]
push eax
push ebx
mov dword [esp + 0xa4], ebx
call sub.gdiplus.dll_GdipCreatePath
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x417f94
mov edx, dword [esp + 0x54]
lea ecx, [edx + eax]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
add ecx, eax
lea esi, [eax + eax]
mov eax, dword [esp + 0x5c]
fstp dword [esp + 0x30]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
mov ecx, eax
sub ecx, esi
sub ecx, edx
fstp dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x60]
fild dword [esp + 0x18]
mov edi, ecx
sub edi, esi
mov esi, dword [esp + 0x58]
fstp dword [esp + 0x20]
sub edi, esi
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
sub eax, edx
sub ecx, esi
sub esp, 8
fstp dword [esp + 0x20]
lea esi, [esp + 0x6c]
fld dword [esp + 0x38]
fstp dword [esp + 0xac]
fld dword [esp + 0x40]
fstp dword [esp + 0xb0]
fld dword [esp + 0x28]
fstp dword [esp + 0xb4]
fld dword [esp + 0x20]
mov dword [esp + 0x20], eax
fstp dword [esp + 0xb8]
lea eax, [esp + 0x4c]
fild dword [esp + 0x5c]
fstp dword [esp + 0x38]
fild dword [esp + 0x60]
fstp dword [esp + 0x40]
fild dword [esp + 0x20]
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x24]
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x38]
fstp dword [esp + 0x4c]
fld dword [esp + 0x40]
fstp dword [esp + 0x50]
fld dword [esp + 0x24]
fstp dword [esp + 0x54]
fld dword [esp + 0x20]
fstp dword [esp + 0x58]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fld dword [ebp + 0xc]
fstp dword [esp]
call fcn.00419520
fld dword [ebp + 0x10]
sub esp, 8
fstp dword [esp + 4]
lea eax, [esp + 0x4c]
fld dword [ebp + 0xc]
lea esi, [esp + 0x94]
fstp dword [esp]
call fcn.00419520
fld dword [esp + 0x1c]
fmul qword [0x5148e8]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x1c]
fld dword [ebp + 0xc]
fadd dword [ebp + 0x10]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fmul qword [0x5148b0]
fdiv qword [0x5148a8]
fst qword [esp + 0x44]
fst qword [esp + 0x84]
call fcn.004eca80
fmul dword [esp + 0x1c]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x24]
fld qword [esp + 0x84]
call fcn.004ec950
fmul dword [esp + 0x1c]
fadd dword [esp + 0x70]
fstp dword [esp + 0x40]
fld dword [esp + 0x24]
fstp dword [esp + 0x74]
fld dword [esp + 0x40]
fstp dword [esp + 0x78]
fld dword [esp + 0x20]
fmul qword [0x5148e8]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld qword [esp + 0x44]
fst qword [esp + 0x44]
call fcn.004eca80
fmul dword [esp + 0x1c]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x20]
fld qword [esp + 0x44]
call fcn.004ec950
fmul dword [esp + 0x1c]
fadd dword [esp + 0x70]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fst dword [esp + 0x84]
fld dword [esp + 0x1c]
fst dword [esp + 0x88]
cmp byte [ebp + 0x24], bl
je 0x417e5f
fsubr dword [esp + 0x40]
fstp dword [esp + 0x40]
fsubr dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [esp + 0x40]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
call fcn.004ecb70
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
sub esp, 8
fstp dword [esp + 0x2c]
lea eax, [esp + 0x4c]
fld dword [esp + 0x28]
lea esi, [esp + 0x6c]
fld dword [esp + 0x2c]
fld qword [0x5148e8]
fmul st(1)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fsub st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x2c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x48]
fstp dword [esp + 0x50]
fst dword [esp + 0x54]
fstp dword [esp + 0x58]
fld dword [0x5148e0]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.00419520
jmp 0x417e77
fstp st(1)
lea eax, [esp + 0x84]
lea ecx, [esp + 0x74]
fstp st(0)
lea esi, [esp + 0x64]
call fcn.004194a0
fld dword [ebp + 0x10]
sub esp, 8
fstp dword [esp + 4]
lea eax, [esp + 0xac]
fld dword [ebp + 0xc]
lea esi, [esp + 0x6c]
fstp dword [esp]
call fcn.00419520
fld dword [ebp + 0x10]
sub esp, 8
fstp dword [esp + 4]
lea eax, [esp + 0xac]
fld dword [ebp + 0xc]
lea esi, [esp + 0xa4]
fstp dword [esp]
call fcn.00419520
fld dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [ebp + 0xc]
fmul qword [0x5148b0]
fdiv qword [0x5148a8]
fst qword [esp + 0x24]
fst qword [esp + 0x44]
call fcn.004eca80
fmul dword [esp + 0x30]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x38]
fld qword [esp + 0x44]
call fcn.004ec950
fmul dword [esp + 0x30]
fadd dword [esp + 0x70]
fstp dword [esp + 0x30]
fld dword [esp + 0x38]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
fld dword [esp + 0x30]
mov dword [esp + 0x74], edx
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fld dword [esp + 0x18]
mov dword [esp + 0x78], eax
fstp dword [esp + 0x18]
fld qword [esp + 0x24]
fst qword [esp + 0x44]
call fcn.004eca80
fmul dword [esp + 0x18]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x30]
fld qword [esp + 0x44]
call fcn.004ec950
fmul dword [esp + 0x18]
lea eax, [esp + 0x74]
lea esi, [esp + 0x64]
fadd dword [esp + 0x70]
fstp dword [esp + 0x18]
fld dword [esp + 0x30]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
fld dword [esp + 0x18]
mov dword [esp + 0x84], ecx
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x84]
mov dword [esp + 0x88], edx
call fcn.004194a0
jmp 0x418018
fild dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x58]
fstp dword [esp + 0x30]
fild dword [esp + 0x58]
mov dword [esp + 0x18], eax
sub esp, 8
lea eax, [esp + 0xac]
fstp dword [esp + 0x40]
lea esi, [esp + 0x6c]
fild dword [esp + 0x20]
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x2c]
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x38]
fstp dword [esp + 0xac]
fld dword [esp + 0x40]
fstp dword [esp + 0xb0]
fld dword [esp + 0x2c]
fstp dword [esp + 0xb4]
fld dword [esp + 0x20]
fstp dword [esp + 0xb8]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fld dword [ebp + 0xc]
fstp dword [esp]
call fcn.00419430
mov eax, dword [esp + 0x64]
push ebx
push ebx
lea edx, [esp + 0xbc]
push edx
push eax
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xc4], ebx
call sub.gdiplus.dll_GdipGetPathWorldBoundsI
cmp eax, ebx
je 0x418050
mov dword [esp + 0x68], eax
mov edi, dword [ebp + 0x18]
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
push 0x534af4
neg ecx
or ecx, eax
push ecx
call fcn.004cffe9
mov esi, eax
add esp, 8
mov dword [esp + 0x74], esi
mov byte [esp + 0x100], 3
cmp esi, ebx
je 0x418095
push 0x4193e0
push edi
push 8
push esi
call fcn.004193f0
jmp 0x418097
xor esi, esi
mov byte [esp + 0x100], 2
cmp esi, ebx
jne 0x4180df
mov eax, dword [esp + 0x9c]
push eax
call sub.gdiplus.dll_GdipDeletePath
mov ecx, dword [esp + 0x8c]
push ecx
call sub.gdiplus.dll_GdipDeletePath
mov edx, dword [esp + 0x64]
push edx
call sub.gdiplus.dll_GdipDeletePath
xor eax, eax
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 1
jle 0x41821f
fldz
dec edi
fstp dword [esp + 0x20]
mov dword [esp + 0x38], edi
fild dword [esp + 0xbc]
sub esp, 8
fld qword [0x5148e8]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x20]
fild dword [esp + 0xc8]
fmul st(1)
fstp dword [esp + 0x38]
fild dword [esp + 0x40]
fst qword [esp + 0x4c]
fld qword [0x5148d8]
fsubr st(1)
fmul qword [0x5148a8]
fdivrp st(1)
fmulp st(1)
fstp qword [esp]
call fcn.004ecc30
add esp, 8
call fcn.004d0c60
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul qword [0x5148b0]
fdiv qword [0x5148a8]
call fcn.004ec950
fld1
fdivrp st(1)
mov edi, esi
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x40]
fmul dword [esp + 0x30]
fstp dword [esp + 0x1c]
fld qword [0x5148c8]
fdiv qword [esp + 0x44]
fstp dword [esp + 0x74]
fld dword [esp + 0x20]
call fcn.004eca80
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul dword [esp + 0x40]
fadd dword [esp + 0x18]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fiadd dword [esp + 0xb4]
fstp dword [edi]
fld dword [esp + 0x20]
call fcn.004ec950
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add edi, 8
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul dword [esp + 0x1c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fiadd dword [esp + 0xb8]
fstp dword [edi - 4]
fld dword [esp + 0x74]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fcom qword [0x5148c8]
fnstsw ax
test ah, 0x41
jnp 0x418185
mov ecx, dword [esi]
fstp st(0)
mov eax, dword [esp + 0x38]
mov edi, dword [ebp + 0x18]
mov dword [esi + eax*8], ecx
mov edx, dword [esi + 4]
mov dword [esi + eax*8 + 4], edx
lea eax, [esp + 0x94]
push eax
push ebx
mov dword [esp + 0x9c], ebx
call sub.gdiplus.dll_GdipCreatePath
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x94]
push edi
push esi
push ecx
call sub.gdiplus.dll_GdipAddPathLine2
cmp eax, ebx
je 0x418255
mov dword [esp + 0x98], eax
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x48]
call fcn.004193a0
lea eax, [esp + 0x6c]
mov byte [esp + 0x100], 5
mov edi, dword [esp + 0x48]
push eax
push edi
call sub.gdiplus.dll_GdipSetPathGradientCenterPoint
cmp eax, ebx
je 0x418285
mov dword [esp + 0x4c], eax
push 1
push edi
call sub.gdiplus.dll_GdipSetPathGradientGammaCorrection
cmp eax, ebx
je 0x418295
mov dword [esp + 0x4c], eax
cmp dword [ebp + 0x20], ebx
je 0x4182ad
push 0xffffff
push edi
call sub.gdiplus.dll_GdipSetPathGradientCenterColor
cmp eax, ebx
je 0x4182ad
mov dword [esp + 0x4c], eax
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.004191e0
push esi
call fcn.004ccb12
add esp, 4
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebx
je 0x418389
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push 0x26200a
push ecx
push edx
mov ecx, eax
call fcn.00419cd0
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x418471
push eax
call fcn.004191a0
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x418471
push 2
mov ecx, esi
call fcn.00419ba0
push 4
mov ecx, esi
call fcn.00419b70
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.00419170
cmp dword [ebp + 0x20], ebx
je 0x418463
mov edi, dword [ebp + 0x18]
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
push 0x534af4
neg ecx
or ecx, eax
push ecx
call fcn.004cffe9
mov esi, eax
add esp, 8
mov dword [esp + 0x74], esi
mov byte [esp + 0x100], 6
cmp esi, ebx
je 0x418392
push 0x419160
push edi
push 4
push esi
call fcn.004193f0
mov edx, esi
mov dword [esp + 0x20], edx
jmp 0x418398
mov dword [esp + 0x18], ebx
jmp 0x418471
mov dword [esp + 0x20], ebx
mov edx, ebx
mov byte [esp + 0x100], 5
cmp edx, ebx
je 0x41845f
cmp edi, 1
mov dword [edx], ebx
jle 0x4183ee
mov ecx, dword [ebp + 0x14]
mov esi, edx
sub esi, ecx
lea eax, [ecx + 4]
dec edi
lea ebx, [ebx]
mov ecx, dword [eax]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
or ebx, 0x5000
shr ecx, 8
shl ebx, 8
movzx ecx, cl
or ebx, ecx
movzx ecx, byte [eax]
shl ebx, 8
or ebx, ecx
mov dword [esi + eax], ebx
add eax, 4
sub edi, 1
jne 0x4183c0
lea eax, [ebp + 0x18]
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.004191e0
fld1
push ecx
fstp dword [esp]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x84]
call fcn.004190d0
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call fcn.00419080
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x80]
push edx
mov ecx, esi
call fcn.00419080
mov eax, dword [esp + 0x20]
push eax
call fcn.004ccb12
mov ecx, dword [esp + 0x80]
add esp, 4
push ecx
call sub.gdiplus.dll_GdipDeletePen
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipFree
mov eax, dword [esp + 0x48]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x94]
push ecx
call sub.gdiplus.dll_GdipDeletePath
mov edx, dword [esp + 0x9c]
push edx
call sub.gdiplus.dll_GdipDeletePath
mov eax, dword [esp + 0x8c]
push eax
call sub.gdiplus.dll_GdipDeletePath
mov ecx, dword [esp + 0x64]
push ecx
call sub.gdiplus.dll_GdipDeletePath
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret