Function at 0x4797f0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ef65
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1ac0
call fcn.004d4130
mov eax, dword [0x566040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 0x14]
lea ecx, [ebp - 0x1ad0]
mov dword [eax], 1
call fcn.0041f1c0
call fcn.0041ce30
mov esi, dword [ebx + 0xc]
lea eax, [ebp - 0x1ad0]
push eax
push esi
call fcn.0041f240
test al, al
jne 0x47986b
xor eax, eax
jmp 0x479ada
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x108e]
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x5c], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479890
sub ecx, edx
lea eax, [ebp - 0x108e]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00416e10
mov dword [ebp - 4], 0
cmp dword [ebp - 0x4c], 0
je 0x47998a
cmp dword [ebp - 0x48], 7
lea edx, [ebp - 0x5c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
cmova edx, dword [ebp - 0x5c]
mov ecx, edx
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x7c], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4798f0
sub ecx, dword [ebp - 0x7c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00416e10
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 1
cmova eax, dword [ebp - 0x2c]
push 0
push 0
push eax
push 0x521fcc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x479950
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 1
cmova eax, dword [ebp - 0x2c]
push 0
push eax
push 0x521fd8
push 0x521fcc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x47998a
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x479980
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x479afa
push ecx
push edx
call fcn.004d37a1
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x44], ax
mov dword [ebp - 0x7c], vtable.GamePicDownloadInfo.0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.004858e0
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x188e]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x74], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4799e0
sub ecx, edx
lea eax, [ebp - 0x188e]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00416e10
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 7
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x479a55
cmp dword [ebp - 0x64], eax
je 0x479a55
sub esp, 0x28
mov ecx, esp
mov dword [ecx], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8SToolBoxDlg_SOUI__AEXH_ZPAV34_ABU___Ph__00_2__std__XH_std__.0
mov dword [ecx + 0xc], eax
mov al, byte [ebp - 0x75]
mov dword [ecx + 8], 0x479b10
mov byte [ecx + 0x10], al
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x24], ecx
call fcn.0047ee00
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.0047fe80
mov esi, 1
jmp 0x479a92
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479a70
push 0
push esi
jmp 0x479a78
cmp esi, 1
jne 0x479a90
push 0
push esi
push 0xfbb
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, 1
jmp 0x479a92
xor esi, esi
lea ecx, [ebp - 0x74]
call fcn.00415000
lea ecx, [ebp - 0x44]
call fcn.00415000
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x479ad8
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x479ace
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x479aff
push ecx
push edx
call fcn.004d37a1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d378e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004e2f6c
call fcn.004e2f6c
int3