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

Disassembly:
push 0xffffffffffffffff
push 0x62036e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x786f54]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [esp + 0x50]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
xor ebp, ebp
push ecx
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x476796
mov dword [esi + 8], eax
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test edx, edx
jge 0x4767a8
fadd dword [0x6f2390]
mov ecx, dword [esi + 4]
fstp dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x4767c5
mov dword [esi + 8], eax
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test edx, edx
jge 0x4767d7
fadd dword [0x6f2390]
push 0x38
fstp dword [esp + 0x40]
call sub.SCL.dll_Ordinal_5366
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebp
mov dword [esp + 0x48], ebp
je 0x4767fc
mov ecx, eax
call sub.SCL.dll_Ordinal_6333
mov edi, eax
jmp 0x4767fe
xor edi, edi
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
lea ecx, [esp + 0x38]
push ecx
push 0x20
mov ecx, edi
mov dword [esp + 0x50], 0xffffffff
call edx
call sub.SCL.dll_Ordinal_2608
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov eax, dword [edi + 0x2c]
push eax
push ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_GdiFlush]
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebp
fld dword [esp + 0x3c]
mov dword [esp + 0x48], 1
call fcn.00610db0
fld dword [esp + 0x38]
mov esi, eax
call fcn.00610db0
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 4]
push esi
push eax
push 0
push 0
push edx
push ebp
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
je 0x476890
mov dword [esp + 0x2c], eax
call fcn.004d8b90
cmp al, 1
jne 0x4769c7
push 0x38
call sub.SCL.dll_Ordinal_5366
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
mov byte [esp + 0x48], 2
je 0x4768bf
mov ecx, eax
call sub.SCL.dll_Ordinal_6333
mov ebp, eax
jmp 0x4768c1
xor ebp, ebp
mov eax, dword [ebp]
mov edx, dword [eax + 0x54]
lea ecx, [esp + 0x38]
push ecx
push 1
mov ecx, ebp
mov byte [esp + 0x50], 1
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x78]
mov ecx, ebp
call edx
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x74]
mov ecx, edi
call edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x74]
mov ecx, ebp
call edx
fld dword [esp + 0x3c]
fldz
mov dword [esp + 0x28], eax
fcom st(1)
mov dword [esp + 0x18], 0
fnstsw ax
fstp st(1)
test ah, 5
jp 0x4769b7
fld dword [esp + 0x38]
fcom st(1)
xor esi, esi
fnstsw ax
test ah, 0x41
jne 0x47698f
mov eax, dword [esp + 0x14]
add eax, 3
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x50]
cmp byte [ecx], 0x50
jae 0x476976
mov eax, esi
fstp st(0)
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, esi
add eax, ebx
and ecx, reloc.WSOCK32.dll_getsockopt
jns 0x476969
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
sar edx, cl
or byte [eax], dl
fld dword [esp + 0x38]
add dword [esp + 0x50], 4
add esi, 1
mov dword [esp + 0x20], esi
fild dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x476942
add dword [esp + 0x18], 1
fild dword [esp + 0x18]
mov eax, dword [esp + 0x24]
fld dword [esp + 0x3c]
add dword [esp + 0x14], eax
add ebx, dword [esp + 0x28]
fcompp
fnstsw ax
test ah, 0x41
je 0x47692c
fstp st(0)
mov ecx, dword [esp + 0x54]
fstp st(0)
mov ebx, dword [esp + 0x30]
mov dword [ecx], ebp
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret