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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1d92
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5203c4]
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.00476b10
mov ecx, eax
test ecx, ecx
je 0x4993c7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x4f9904
mov dword [ebp - 4], 0
mov ecx, esi
test eax, 0xffff0000
jne 0x499022
movzx eax, ax
push eax
call fcn.00480960
jmp 0x49902e
push 0
push 0x4f9904
call fcn.00477ed0
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
push dword [eax + 4]
lea eax, [ebp - 0x230]
push eax
call fcn.004850c0
add esp, 0xc
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 1
jb 0x499065
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4992d3
cmp dword [ebp - 0x21c], 8
lea esi, [ebp - 0x230]
jb 0x499089
mov esi, dword [ebp - 0x230]
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x4993d1
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 0x4990e1
test esi, 0xffff0000
jne 0x4990c7
movzx eax, si
lea ecx, [ebp - 0x24c]
push eax
call fcn.00480960
jmp 0x4990f0
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4990d0
sub ecx, edx
sar ecx, 1
jmp 0x4990e3
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x24c]
call fcn.00477ed0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 3
push eax
call fcn.00487700
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 0x499127
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4992b5
mov eax, dword [ebp - 0x220]
cmp eax, 2
jbe 0x4992d9
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 0x499172
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 0x4991e7
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4991dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4993db
push edx
push ecx
call fcn.004a8c37
add esp, 8
test esi, esi
je 0x4992d3
cmp dword [ebp - 0x24c], 0
ja 0x499233
cmp dword [ebp - 0x250], 0x6400000
ja 0x499233
push str.STRID_SIMULATOR_TIPS_DIR_NOSPACE
lea eax, [ebp - 0x248]
mov ecx, 0x528720
push eax
call fcn.004939a0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 4
jb 0x499226
mov eax, dword [eax]
mov ecx, dword [ebx]
push eax
call fcn.0049a940
jmp 0x499362
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
jb 0x49925e
mov eax, dword [ebp - 0x230]
push str.GameAssistant
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.00499750
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.0048eab0
add esp, 4
jmp 0x49936d
push str.STRID_SIMULATOR_TIPS_DIR_NOTWRITE
lea eax, [ebp - 0x248]
mov ecx, 0x528720
push eax
call fcn.004939a0
mov edi, eax
mov byte [ebp - 4], 5
jmp 0x4992fd
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x49936d
push str.STRID_SIMULATOR_TIPS_DIR_UNVALID
lea eax, [ebp - 0x248]
mov ecx, 0x528720
push eax
call fcn.004939a0
mov edi, eax
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], 8
jb 0x499305
mov edi, dword [edi]
mov ebx, dword [ebx]
test edi, edi
je 0x499362
push str.lb_tips
push 0
push 0x8003
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x525dcc
push 0x5219a4
push 0
push eax
call fcn.004ae9dc
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 0x4993a9
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49939f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4993e0
push edx
push ecx
call fcn.004a8c37
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.004a8e4e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00476460
push 0x80004005
call fcn.00476460
call fcn.004b040f
call fcn.004b040f
int3