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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b99f0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x629960]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x629960]
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 0x47762b
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 0x476e14
xor eax, eax
jmp 0x476e17
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 0x476e6a
cmp dword [eax + 4], ebx
jne 0x476e96
cmp dword [esi + 0x12c], ebx
je 0x476e78
mov dword [esi + 0x12c], ebx
test edi, edi
jne 0x476e80
xor eax, eax
jmp 0x476e83
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x124]
call fcn.0049a7f6
mov edx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp dword [esi + 0x138], ebx
jne 0x476ed5
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.0049a82c
mov edx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
xor al, al
mov byte [esp + 0x1b], al
cmp byte [esi + 0x155], bl
je 0x476fda
cmp dword [esi + 0x150], ebx
jne 0x476f1a
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.0049a82c
lea eax, [esi + 0x13c]
test eax, eax
je 0x476f2d
cmp dword [eax + 4], ebx
jne 0x476fd6
test edi, edi
jne 0x476f35
xor eax, eax
jmp 0x476f38
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x13c]
call fcn.0049a7f6
lea eax, [esi + 0x14c]
test eax, eax
je 0x476f58
mov eax, dword [eax + 4]
push eax
push dword [esi + 0x140]
call fcn.0049ac5e
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 0x476f86
xor edx, edx
jmp 0x476f89
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 0x476fc3
xor eax, eax
push eax
push dword [esi + 0x140]
call fcn.0049ac5e
mov al, 1
jmp 0x476fda
mov eax, dword [ebx + 4]
push eax
push dword [esi + 0x140]
call fcn.0049ac5e
mov al, 1
jmp 0x476fda
mov al, byte [esp + 0x1b]
cmp byte [esi + 0x155], 0
je 0x47705c
cmp byte [esi + 0x154], 0
je 0x47705c
test al, al
jne 0x47700b
lea eax, [esi + 0x14c]
test eax, eax
je 0x476ffd
mov eax, dword [eax + 4]
push eax
push dword [esi + 0x140]
call fcn.0049ac5e
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 0x477030
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 0x477453
lea eax, [esi + 0x134]
test eax, eax
je 0x477069
mov eax, dword [eax + 4]
push eax
push dword [esi + 0x128]
call fcn.0049ac5e
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 0x477097
xor edx, edx
jmp 0x47709a
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 0x4770d2
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 0x47720d
cmp byte [esi + 0x120], 0
jne 0x47720d
sub esp, 0x1c
cmp dword [esi + 0x18c], 1
jne 0x47716a
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 0x4771f4
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.00477a90
jmp 0x47740f
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 0x477264
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.00483890
jmp 0x4772d5
cmp eax, 2
jne 0x47729b
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 0x4772d5
mov dword [esp + 0x4c], eax
jmp 0x4772d5
test eax, eax
jne 0x4772d5
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.00477a60
push 0
push dword [esp + 0x4c]
push dword [esp + 0x48]
call dword [sym.imp.gdiplus.dll_GdipSetClipPath]
cmp dword [esi + 0x18c], 1
jne 0x477362
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 0x477321
mov eax, dword [eax + 4]
jmp 0x477323
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 0x4773fa
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 0x4773be
mov eax, dword [eax + 4]
jmp 0x4773c0
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 0x477428
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 0x4775c6
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 0x4774c2
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.00483890
jmp 0x477547
cmp eax, 2
jne 0x477501
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 0x477547
mov dword [esp + 0x4c], eax
jmp 0x477547
test eax, eax
jne 0x477547
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.00477a60
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 0x4775f3
cmp byte [esi + 0x154], 0
je 0x4775f3
test ebx, ebx
jne 0x4775e7
xor eax, eax
push eax
push dword [esi + 0x140]
jmp 0x477605
mov eax, dword [ebx + 4]
push eax
push dword [esi + 0x140]
jmp 0x477605
test ebx, ebx
jne 0x4775fb
xor eax, eax
jmp 0x4775fe
mov eax, dword [ebx + 4]
push eax
push dword [esi + 0x128]
call fcn.0049ac5e
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.004a16e5
mov esp, ebp
pop ebp
ret 0x14