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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b88a0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x628960]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x628960]
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 0x476cd6
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 + 0x20], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], 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 0x4764f4
xor eax, eax
jmp 0x4764f7
mov eax, dword [edi + 4]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 0
push ecx
push eax
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
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 0x47654a
cmp dword [eax + 4], ebx
jne 0x476576
cmp dword [esi + 0x12c], ebx
je 0x476558
mov dword [esi + 0x12c], ebx
test edi, edi
jne 0x476560
xor eax, eax
jmp 0x476563
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x124]
call fcn.00499745
mov edx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp dword [esi + 0x138], ebx
jne 0x4765b5
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.0049977b
mov edx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
xor al, al
mov byte [esp + 0x1f], al
cmp byte [esi + 0x155], bl
je 0x4766ba
cmp dword [esi + 0x150], ebx
jne 0x4765fa
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.0049977b
lea eax, [esi + 0x13c]
test eax, eax
je 0x47660d
cmp dword [eax + 4], ebx
jne 0x4766b6
test edi, edi
jne 0x476615
xor eax, eax
jmp 0x476618
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x13c]
call fcn.00499745
lea eax, [esi + 0x14c]
test eax, eax
je 0x476638
mov eax, dword [eax + 4]
push eax
push dword [esi + 0x140]
call fcn.00499bbe
mov ecx, dword [esi + 0xb8]
mov ebx, eax
mov edx, dword [esi + 0xb4]
sub ecx, dword [esi + 0xb0]
sub edx, dword [esi + 0xac]
test edi, edi
jne 0x476666
xor eax, eax
jmp 0x476669
mov eax, dword [edi + 4]
push 0xcc0020
push dword [esi + 0xb0]
push dword [esi + 0xac]
push eax
push ecx
push edx
push 0
push 0
push dword [esi + 0x140]
call dword [sym.imp.GDI32.dll_BitBlt]
test ebx, ebx
jne 0x4766a3
xor eax, eax
push eax
push dword [esi + 0x140]
call fcn.00499bbe
mov al, 1
jmp 0x4766ba
mov eax, dword [ebx + 4]
push eax
push dword [esi + 0x140]
call fcn.00499bbe
mov al, 1
jmp 0x4766ba
mov al, byte [esp + 0x1f]
cmp byte [esi + 0x155], 0
je 0x476735
cmp byte [esi + 0x154], 0
je 0x476735
test al, al
jne 0x4766e4
lea eax, [esi + 0x14c]
push eax
lea ecx, [esi + 0x13c]
call fcn.00474370
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 0x476709
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 0x476afe
lea eax, [esi + 0x134]
test eax, eax
je 0x476742
mov eax, dword [eax + 4]
push eax
push dword [esi + 0x128]
call fcn.00499bbe
mov ecx, dword [esp + 0x30]
mov ebx, eax
mov edx, dword [esp + 0x34]
sub ecx, dword [esp + 0x14]
sub edx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
test edi, edi
jne 0x476770
xor eax, eax
jmp 0x476773
mov eax, dword [edi + 4]
push 0xcc0020
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push ecx
push edx
push dword [esp + 0x2c]
push dword [esp + 0x34]
push dword [esi + 0x128]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esi + 0x124]
xorps xmm0, xmm0
movq qword [esp + 0x50], xmm0
test eax, eax
je 0x4767ab
mov eax, dword [eax + 4]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0
push ecx
push eax
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
cmp dword [esi + 0x184], 0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x50], eax
jne 0x4768e6
cmp byte [esi + 0x120], 0
jne 0x4768e6
sub esp, 0x1c
cmp dword [esi + 0x18c], 1
jne 0x476843
movd xmm0, dword [esp + 0x4c]
movd xmm1, dword [esp + 0x50]
movd xmm3, dword [esp + 0x34]
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 + 0x3c], xmm3
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x44], xmm1
movss dword [esp + 0x48], xmm0
movss dword [esp], xmm2
jmp 0x4768cd
mov edx, dword [esp + 0x34]
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 + 0x3c], xmm0
movd xmm0, eax
mov eax, dword [esi + 0xb8]
sub eax, dword [esi + 0xb0]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x44], xmm0
movd xmm0, eax
mov eax, dword [esi + 0x20]
cvtdq2ps xmm0, xmm0
imul eax, ecx
movss dword [esp + 0x48], xmm0
movd xmm0, dword [esi + 0x170]
cvtdq2ps xmm0, xmm0
add eax, edx
movss dword [esp + 0x40], 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 + 0x3c]
push eax
push dword [esi + 0x15c]
lea ecx, [esp + 0x74]
call fcn.00477140
jmp 0x476aba
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 0x47693d
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.00482a00
jmp 0x4769ae
cmp eax, 2
jne 0x476974
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 0x4769ae
mov dword [esp + 0x4c], eax
jmp 0x4769ae
test eax, eax
jne 0x4769ae
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xb8]
sub eax, dword [esi + 0xb0]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00477110
push 0
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call dword [sym.imp.gdiplus.dll_GdipSetClipPath]
mov ecx, dword [esp + 0x54]
test eax, eax
cmovne ecx, eax
sub esp, 0x1c
cmp dword [esi + 0x18c], 1
mov dword [esp + 0x70], ecx
jne 0x476a26
movd xmm0, dword [esp + 0x4c]
movd xmm1, dword [esp + 0x50]
movd xmm3, dword [esp + 0x34]
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 + 0x3c], xmm3
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x44], xmm1
movss dword [esp + 0x48], xmm0
movss dword [esp], xmm2
jmp 0x476a9c
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0x16c]
mov eax, dword [esi + 0x20]
movd xmm1, dword [esp + 0x30]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
imul eax, ecx
movss dword [esp + 0x3c], xmm0
movd xmm0, dword [esp + 0x50]
cvtdq2ps xmm0, xmm0
add eax, edx
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x44], xmm0
movd xmm0, dword [esp + 0x4c]
cvtdq2ps xmm0, xmm0
movd xmm3, eax
movss dword [esp + 0x48], xmm0
movd xmm0, dword [esi + 0x170]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x40], xmm1
movss dword [esp + 8], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm3, xmm3
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
lea eax, [esp + 0x3c]
push eax
push dword [esi + 0x15c]
lea ecx, [esp + 0x74]
call fcn.00477140
push dword [esp + 0x50]
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 0x476ad3
mov edx, dword [edx + 4]
push 0xcc0020
push dword [esp + 0x18]
push dword [esp + 0x20]
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 + 0x50]
mov edi, dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
call edi
cmp byte [esi + 0x120], 0
je 0x476c71
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 0x476b6d
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.00482a00
jmp 0x476bf2
cmp eax, 2
jne 0x476bac
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 0x476bf2
mov dword [esp + 0x4c], eax
jmp 0x476bf2
test eax, eax
jne 0x476bf2
mov eax, dword [esi + 0xac]
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xb4]
sub eax, dword [esi + 0xac]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xb8]
sub eax, dword [esi + 0xb0]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00477110
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 + 0x58], xmm0
movzx eax, byte [esi + 0x162]
movss xmm0, dword [esi + 0x164]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x58], 0
lea eax, [esp + 0x58]
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 + 0x60], eax
push dword [esp + 0x5c]
push dword [esp + 0x48]
call dword [sym.imp.gdiplus.dll_GdipDrawPath]
mov ecx, dword [esp + 0x38]
test eax, eax
push dword [esp + 0x58]
cmovne ecx, eax
mov dword [esp + 0x68], ecx
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
cmp byte [esi + 0x155], 0
je 0x476c9e
cmp byte [esi + 0x154], 0
je 0x476c9e
test ebx, ebx
jne 0x476c92
xor eax, eax
push eax
push dword [esi + 0x140]
jmp 0x476cb0
mov eax, dword [ebx + 4]
push eax
push dword [esi + 0x140]
jmp 0x476cb0
test ebx, ebx
jne 0x476ca6
xor eax, eax
jmp 0x476ca9
mov eax, dword [ebx + 4]
push eax
push dword [esi + 0x128]
call fcn.00499bbe
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x40]
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.004a0676
mov esp, ebp
pop ebp
ret 0x14