Function at 0x494500
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcab2
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push ecx
mov esi, esp
mov dword [ebp - 0x24c], esi
call fcn.004762a0
mov ecx, eax
test ecx, ecx
je 0x494917
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x4f35d4
mov dword [ebp - 4], 0
mov ecx, esi
test eax, 0xffff0000
jne 0x494572
movzx eax, ax
push eax
call fcn.0047df50
jmp 0x49457e
push 0
push 0x4f35d4
call fcn.00476770
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
push dword [eax + 4]
lea eax, [ebp - 0x230]
push eax
call fcn.00482710
add esp, 0xc
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 1
jb 0x4945b5
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x494823
cmp dword [ebp - 0x21c], 8
lea esi, [ebp - 0x230]
jb 0x4945d9
mov esi, dword [ebp - 0x230]
call fcn.004762a0
mov ecx, eax
test ecx, ecx
je 0x494921
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 2
test esi, esi
je 0x494631
test esi, 0xffff0000
jne 0x494617
movzx eax, si
lea ecx, [ebp - 0x24c]
push eax
call fcn.0047df50
jmp 0x494640
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494620
sub ecx, edx
sar ecx, 1
jmp 0x494633
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x24c]
call fcn.00476770
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 3
push eax
call fcn.00484ba0
mov edx, dword [ebp - 0x24c]
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x494677
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x494805
mov eax, dword [ebp - 0x220]
cmp eax, 2
jbe 0x494829
xor eax, eax
mov edx, 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], edx
jb 0x4946c2
mov eax, dword [ebp - 0x230]
push 0
mov dword [ebp - 0x238], 2
xor ecx, ecx
mov eax, dword [eax]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x250]
push 0
mov word [ebp - 0x244], cx
lea ecx, [ebp - 0x248]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 0x234]
mov esi, eax
cmp edx, 8
jb 0x494737
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49472d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49492b
push edx
push ecx
call fcn.004a42a7
add esp, 8
test esi, esi
je 0x494823
cmp dword [ebp - 0x24c], 0
ja 0x494783
cmp dword [ebp - 0x250], 0x6400000
ja 0x494783
push str.STRID_SIMULATOR_TIPS_DIR_NOSPACE
lea eax, [ebp - 0x248]
mov ecx, 0x522640
push eax
call fcn.0048eef0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 4
jb 0x494776
mov eax, dword [eax]
mov ecx, dword [ebx]
push eax
call fcn.00496000
jmp 0x4948b2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a8e20
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
jb 0x4947ae
mov eax, dword [ebp - 0x230]
push str.360GameAssistant
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebx]
push str.lb_folder
call fcn.00494ca0
mov esi, eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x128]
mov edx, dword [esi]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call dword [edx + 0xa8]
lea eax, [ebp - 0x218]
push eax
call fcn.0048a5e0
add esp, 4
jmp 0x4948bd
push str.STRID_SIMULATOR_TIPS_DIR_NOTWRITE
lea eax, [ebp - 0x248]
mov ecx, 0x522640
push eax
call fcn.0048eef0
mov edi, eax
mov byte [ebp - 4], 5
jmp 0x49484d
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4948bd
push str.STRID_SIMULATOR_TIPS_DIR_UNVALID
lea eax, [ebp - 0x248]
mov ecx, 0x522640
push eax
call fcn.0048eef0
mov edi, eax
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], 8
jb 0x494855
mov edi, dword [edi]
mov ebx, dword [ebx]
test edi, edi
je 0x4948b2
push str.lb_tips
push 0
push 0x8003
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x51fef4
push 0x51ba14
push 0
push eax
call fcn.004aa04c
mov esi, eax
add esp, 0x14
mov ecx, esi
mov edx, dword [esi]
push edi
call dword [edx + 0x128]
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx + 0x4c]
push 0
push 0xbb8
push 0x3e8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [ebp - 0x248]
call fcn.004074f0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4948f9
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4948ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x494930
push edx
push ecx
call fcn.004a42a7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00475e90
push 0x80004005
call fcn.00475e90
call fcn.004aba7f
call fcn.004aba7f
int3