Function at 0x478980
Capabilities:
Check if file exists

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 0x50b48d
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1ac0
call fcn.004d0670
mov eax, dword [0x562040]
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.00424110
call fcn.00421ff0
mov esi, dword [ebx + 0xc]
lea eax, [ebp - 0x1ad0]
push eax
push esi
call fcn.00424190
test al, al
jne 0x4789fb
xor eax, eax
jmp 0x478c2c
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x108e]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478a20
sub ecx, edx
lea eax, [ebp - 0x108e]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00416d40
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
je 0x478ae4
cmp dword [ebp - 0x30], 7
lea edx, [ebp - 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
cmova edx, dword [ebp - 0x44]
mov ecx, edx
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x5c], 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 0x478a80
sub ecx, dword [ebp - 0x7c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00416d40
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.0041a300
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x478ae4
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x478ada
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478c4c
push ecx
push edx
call fcn.004cfce1
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x7c], vtable.GamePicDownloadInfo.0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
push esi
call fcn.004843a0
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478b32
sub ecx, edx
lea eax, [ebp - 0x188e]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00416d40
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x478ba7
cmp dword [ebp - 0x64], eax
je 0x478ba7
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], 0x478c60
mov byte [ecx + 0x10], al
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x24], ecx
call fcn.0047dce0
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.0047eb30
mov esi, 1
jmp 0x478be4
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478bc2
push 0
push esi
jmp 0x478bca
cmp esi, 1
jne 0x478be2
push 0
push esi
push 0xfbb
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, 1
jmp 0x478be4
xor esi, esi
lea ecx, [ebp - 0x74]
call fcn.00414f80
lea ecx, [ebp - 0x2c]
call fcn.00414f80
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x478c2a
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x478c20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478c51
push ecx
push edx
call fcn.004cfce1
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.004cfcce
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004df8cc
call fcn.004df8cc
int3