Function at 0x478c40
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 0x50d3dd
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1ac0
call fcn.004d24c0
mov eax, dword [0x564040]
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.004242a0
call fcn.00422100
mov esi, dword [ebx + 0xc]
lea eax, [ebp - 0x1ad0]
push eax
push esi
call fcn.00424320
test al, al
jne 0x478cbb
xor eax, eax
jmp 0x478eec
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 0x478ce0
sub ecx, edx
lea eax, [ebp - 0x108e]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00416e30
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
je 0x478da4
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 0x478d40
sub ecx, dword [ebp - 0x7c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00416e30
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.0041a450
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x478da4
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x478d9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478f0c
push ecx
push edx
call fcn.004d1b31
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.00484a70
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 0x478df2
sub ecx, edx
lea eax, [ebp - 0x188e]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00416e30
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 0x478e67
cmp dword [ebp - 0x64], eax
je 0x478e67
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], 0x478f20
mov byte [ecx + 0x10], al
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x24], ecx
call fcn.0047df90
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.0047f010
mov esi, 1
jmp 0x478ea4
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 0x478e82
push 0
push esi
jmp 0x478e8a
cmp esi, 1
jne 0x478ea2
push 0
push esi
push 0xfbb
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, 1
jmp 0x478ea4
xor esi, esi
lea ecx, [ebp - 0x74]
call fcn.00415020
lea ecx, [ebp - 0x2c]
call fcn.00415020
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x478eea
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x478ee0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478f11
push ecx
push edx
call fcn.004d1b31
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.004d1b1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004e183c
call fcn.004e183c
int3