Function at 0x1018d1a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023ef36
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x102e91c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push ecx
mov dword [ebp - 4], eax
lea ecx, [eax + 0x18]
mov edx, esi
mov dword [ebp - 0x10], 1
call fcn.1014d9e0
add esp, 4
test al, al
je 0x1018d239
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1018d223
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1018d239
push ecx
mov ecx, esi
call fcn.1014e6f0
add esp, 4
push ecx
mov edx, esi
mov ecx, 0x1b
call fcn.1014d9e0
add esp, 4
test al, al
je 0x1018d26d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1018d257
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1018d26d
push ecx
mov ecx, esi
call fcn.1014e6f0
add esp, 4
test edi, edi
jne 0x1018d311
push 0xc
push str.temp_lbs_wid
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.1000aef0
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1018d475
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1018d475
lea ebx, [eax + 0xb]
mov edx, 2
add ebx, ecx
xor ecx, ecx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101dc6a1
mov edi, eax
add esp, 4
test edi, edi
je 0x1018d475
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1018d2de
mov eax, dword [esi]
push eax
push ebx
push edi
call fcn.101dc63d
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1018d301
jmp 0x1018d45f
cmp edi, 1
jne 0x1018d3c2
push 0x10
push str.temp_ins_lbs_wid
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.1000aef0
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1018d475
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1018d475
lea ebx, [eax + 0xb]
mov edx, 2
add ebx, ecx
xor ecx, ecx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101dc6a1
mov edi, eax
add esp, 4
test edi, edi
je 0x1018d475
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1018d38f
mov eax, dword [esi]
push eax
push ebx
push edi
call fcn.101dc63d
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1018d3b2
jmp 0x1018d45f
cmp edi, 2
jne 0x1018d47d
push 0xf
push str.logged_out_guid
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.1000aef0
mov dword [ebp - 4], 3
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1018d475
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1018d475
lea ebx, [eax + 0xb]
mov edx, edi
add ebx, ecx
xor ecx, ecx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101dc6a1
mov edi, eax
add esp, 4
test edi, edi
je 0x1018d475
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1018d431
mov eax, dword [esi]
push eax
push ebx
push edi
call fcn.101dc63d
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1018d454
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.10010360
push edi
call fcn.101dbd83
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.1000ae90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret