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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ab470
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x617960]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x617960]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
mov edi, dword [ebp + 8]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x160]
call eax
test al, al
je 0x47583b
lea eax, [esi + 0xf4]
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x48]
sub edx, dword [esi + 0xb0]
xorps xmm0, xmm0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
sub ebx, dword [esi + 0xac]
sub ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp + 0xc]
add ecx, dword [esp + 0x14]
add edx, ebx
push eax
movq qword [esp + 0x4c], xmm0
push 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], 0
call dword [sym.imp.gdiplus.dll_GdipCreatePath]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x78], 0
xorps xmm0, xmm0
movq qword [esp + 0x60], xmm0
test edi, edi
jne 0x475024
xor eax, eax
jmp 0x475027
mov eax, dword [edi + 4]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0
push ecx
push eax
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], eax
push 2
push eax
mov byte [esp + 0x80], 1
xor ebx, ebx
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
mov ecx, dword [esp + 0x38]
test eax, eax
cmovne ecx, eax
lea eax, [esi + 0x124]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x64], ecx
test eax, eax
je 0x47507a
cmp dword [eax + 4], ebx
jne 0x4750a6
cmp dword [esi + 0x12c], ebx
je 0x475088
mov dword [esi + 0x12c], ebx
test edi, edi
jne 0x475090
xor eax, eax
jmp 0x475093
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x124]
call fcn.0048c5d6
mov edx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp dword [esi + 0x138], ebx
jne 0x4750e5
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb0]
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
push ecx
push eax
push dword [edi + 4]
call edx
push eax
lea ecx, [esi + 0x134]
call fcn.0048c60c
mov edx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
xor al, al
mov byte [esp + 0x1b], al
cmp byte [esi + 0x155], bl
je 0x4751ea
cmp dword [esi + 0x150], ebx
jne 0x47512a
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb0]
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
push ecx
push eax
push dword [edi + 4]
call edx
push eax
lea ecx, [esi + 0x14c]
call fcn.0048c60c
lea eax, [esi + 0x13c]
test eax, eax
je 0x47513d
cmp dword [eax + 4], ebx
jne 0x4751e6
test edi, edi
jne 0x475145
xor eax, eax
jmp 0x475148
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x13c]
call fcn.0048c5d6
lea eax, [esi + 0x14c]
test eax, eax
je 0x475168
mov eax, dword [eax + 4]
push eax
push dword [esi + 0x140]
call fcn.0048c9f9
mov ecx, dword [esi + 0xb4]
mov ebx, eax
mov eax, dword [esi + 0xb8]
sub eax, dword [esi + 0xb0]
sub ecx, dword [esi + 0xac]
test edi, edi
jne 0x475196
xor edx, edx
jmp 0x475199
mov edx, dword [edi + 4]
push 0xcc0020
push dword [esi + 0xb0]
push dword [esi + 0xac]
push edx
push eax
push ecx
push 0
push 0
push dword [esi + 0x140]
call dword [sym.imp.GDI32.dll_BitBlt]
test ebx, ebx
jne 0x4751d3
xor eax, eax
push eax
push dword [esi + 0x140]
call fcn.0048c9f9
mov al, 1
jmp 0x4751ea
mov eax, dword [ebx + 4]
push eax
push dword [esi + 0x140]
call fcn.0048c9f9
mov al, 1
jmp 0x4751ea
mov al, byte [esp + 0x1b]
cmp byte [esi + 0x155], 0
je 0x47526c
cmp byte [esi + 0x154], 0
je 0x47526c
test al, al
jne 0x47521b
lea eax, [esi + 0x14c]
test eax, eax
je 0x47520d
mov eax, dword [eax + 4]
push eax
push dword [esi + 0x140]
call fcn.0048c9f9
mov ebx, eax
mov eax, dword [esi + 0xb8]
lea edx, [esi + 0x13c]
mov ecx, dword [esi + 0xb4]
sub eax, dword [esi + 0xb0]
sub ecx, dword [esi + 0xac]
test edx, edx
je 0x475240
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
push dword [esi + 0xb0]
push dword [esi + 0xac]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
jmp 0x475663
lea eax, [esi + 0x134]
test eax, eax
je 0x475279
mov eax, dword [eax + 4]
push eax
push dword [esi + 0x128]
call fcn.0048c9f9
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x14]
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
test edi, edi
jne 0x4752a7
xor edx, edx
jmp 0x4752aa
mov edx, dword [edi + 4]
push 0xcc0020
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push eax
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esi + 0x128]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esi + 0x124]
xorps xmm0, xmm0
movq qword [esp + 0x58], xmm0
test eax, eax
je 0x4752e2
mov eax, dword [eax + 4]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 0
push ecx
push eax
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
cmp dword [esi + 0x184], 0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
jne 0x47541d
cmp byte [esi + 0x120], 0
jne 0x47541d
sub esp, 0x1c
cmp dword [esi + 0x18c], 1
jne 0x47537a
movd xmm0, dword [esp + 0x40]
movd xmm1, dword [esp + 0x3c]
movd xmm3, dword [esp + 0x38]
movd xmm2, dword [esp + 0x30]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm3, xmm3
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm1
movss dword [esp + 0x44], xmm3
movss dword [esp + 0x48], xmm2
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x50], xmm0
movss dword [esp], xmm2
jmp 0x475404
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
mov ecx, dword [esi + 0x16c]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movd xmm1, dword [esp + 0x30]
movss dword [esp + 0x44], xmm0
movd xmm0, eax
mov eax, dword [esi + 0xb8]
sub eax, dword [esi + 0xb0]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x4c], xmm0
movd xmm0, eax
mov eax, dword [esi + 0x20]
cvtdq2ps xmm0, xmm0
imul eax, ecx
movss dword [esp + 0x50], xmm0
movd xmm0, dword [esi + 0x170]
cvtdq2ps xmm0, xmm0
add eax, edx
movss dword [esp + 0x48], xmm1
movss dword [esp + 8], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm3, eax
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
cvtdq2ps xmm3, xmm3
lea eax, [esp + 0x44]
push eax
push dword [esi + 0x15c]
lea ecx, [esp + 0x7c]
call fcn.00475ca0
jmp 0x47561f
push dword [esp + 0x48]
call dword [sym.imp.gdiplus.dll_GdipResetPath]
mov ecx, dword [esp + 0x4c]
test eax, eax
cmovne ecx, eax
mov eax, dword [esi + 0x184]
mov dword [esp + 0x4c], ecx
cmp eax, 1
jne 0x475474
push dword [esi + 0x180]
mov eax, dword [esi + 0xb8]
lea ecx, [esp + 0x4c]
push dword [esi + 0x17c]
sub eax, dword [esi + 0xb0]
push eax
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
push eax
push 0
push 0
call fcn.0047adc0
jmp 0x4754e5
cmp eax, 2
jne 0x4754ab
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb0]
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
push ecx
push eax
push 0
push 0
push dword [esp + 0x58]
call dword [sym.imp.gdiplus.dll_GdipAddPathEllipseI]
test eax, eax
je 0x4754e5
mov dword [esp + 0x4c], eax
jmp 0x4754e5
test eax, eax
jne 0x4754e5
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xb8]
sub eax, dword [esi + 0xb0]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
call fcn.00475c70
push 0
push dword [esp + 0x4c]
push dword [esp + 0x48]
call dword [sym.imp.gdiplus.dll_GdipSetClipPath]
cmp dword [esi + 0x18c], 1
jne 0x475572
movd xmm0, dword [esp + 0x1c]
movd xmm1, dword [esp + 0x14]
movd xmm3, dword [esp + 0x20]
movd xmm2, dword [esp + 0x24]
mov eax, dword [esi + 0x15c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm2, xmm2
test eax, eax
je 0x475531
mov eax, dword [eax + 4]
jmp 0x475533
xor eax, eax
push 0
push 0
push 0
push 2
sub esp, 0x20
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x18], xmm3
movss dword [esp + 0x14], xmm1
movss dword [esp + 0x10], xmm0
movss dword [esp + 0xc], xmm2
movss dword [esp + 8], xmm3
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
jmp 0x47560a
mov ecx, dword [esi + 0x16c]
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x1c]
movd xmm0, dword [esp + 0x14]
movd xmm5, dword [esp + 0x20]
movd xmm4, dword [esp + 0x24]
movd xmm3, dword [esi + 0x170]
imul eax, ecx
movd xmm6, edx
movd xmm2, ecx
cvtdq2ps xmm6, xmm6
add eax, edx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
mov eax, dword [esi + 0x15c]
cvtdq2ps xmm5, xmm5
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm3, xmm3
test eax, eax
je 0x4755ce
mov eax, dword [eax + 4]
jmp 0x4755d0
xor eax, eax
push 0
push 0
push 0
push 2
sub esp, 0x20
movss dword [esp + 0x1c], xmm3
movss dword [esp + 0x18], xmm2
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x10], xmm1
movss dword [esp + 0xc], xmm4
movss dword [esp + 8], xmm5
movss dword [esp + 4], xmm0
movss dword [esp], xmm6
push eax
push dword [esp + 0x74]
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectRect]
push dword [esp + 0x40]
call dword [sym.imp.gdiplus.dll_GdipResetClip]
mov eax, dword [ebp + 0x18]
lea edx, [esi + 0x124]
mov ecx, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
test edx, edx
je 0x475638
mov edx, dword [edx + 4]
push 0xcc0020
push dword [esp + 0x18]
push dword [esp + 0x24]
push edx
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x58]
mov edi, dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
call edi
cmp byte [esi + 0x120], 0
je 0x4757d6
push dword [esp + 0x48]
call dword [sym.imp.gdiplus.dll_GdipResetPath]
mov ecx, dword [esp + 0x4c]
test eax, eax
cmovne ecx, eax
mov eax, dword [esi + 0x184]
mov dword [esp + 0x4c], ecx
cmp eax, 1
jne 0x4756d2
push dword [esi + 0x180]
mov eax, dword [esi + 0xb8]
lea ecx, [esp + 0x4c]
push dword [esi + 0x17c]
sub eax, dword [esi + 0xb0]
push eax
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
push eax
push dword [esi + 0xb0]
push dword [esi + 0xac]
call fcn.0047adc0
jmp 0x475757
cmp eax, 2
jne 0x475711
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb0]
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
push ecx
push eax
push dword [esi + 0xb0]
push dword [esi + 0xac]
push dword [esp + 0x58]
call dword [sym.imp.gdiplus.dll_GdipAddPathEllipseI]
test eax, eax
je 0x475757
mov dword [esp + 0x4c], eax
jmp 0x475757
test eax, eax
jne 0x475757
mov eax, dword [esi + 0xac]
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xb8]
sub eax, dword [esi + 0xb0]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
call fcn.00475c70
movzx ecx, byte [esi + 0x160]
xorps xmm0, xmm0
movzx eax, byte [esi + 0x161]
or ecx, 0xffffff00
shl ecx, 8
or ecx, eax
movq qword [esp + 0x50], xmm0
movzx eax, byte [esi + 0x162]
movss xmm0, dword [esi + 0x164]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x50], 0
lea eax, [esp + 0x50]
push eax
push 0
push ecx
movss dword [esp], xmm0
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreatePen1]
push dword [esp + 0x48]
mov dword [esp + 0x58], eax
push dword [esp + 0x54]
push dword [esp + 0x4c]
call dword [sym.imp.gdiplus.dll_GdipDrawPath]
mov ecx, dword [esp + 0x38]
test eax, eax
push dword [esp + 0x50]
cmovne ecx, eax
mov dword [esp + 0x68], ecx
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
cmp byte [esi + 0x155], 0
je 0x475803
cmp byte [esi + 0x154], 0
je 0x475803
test ebx, ebx
jne 0x4757f7
xor eax, eax
push eax
push dword [esi + 0x140]
jmp 0x475815
mov eax, dword [ebx + 4]
push eax
push dword [esi + 0x140]
jmp 0x475815
test ebx, ebx
jne 0x47580b
xor eax, eax
jmp 0x47580e
mov eax, dword [ebx + 4]
push eax
push dword [esi + 0x128]
call fcn.0048c9f9
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x44]
call edi
push dword [esp + 0x48]
call dword [sym.imp.gdiplus.dll_GdipDeletePath]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0049355b
mov esp, ebp
pop ebp
ret 0x14