Function at 0x410160
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45a58d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x49c23c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.0040ff70
push str._savapi_vbase000.vdf
push eax
lea ecx, [esp + 0x34]
mov esi, 1
push ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x24], esi
call fcn.0040f5f0
add esp, 0x14
mov eax, dword [eax]
mov dword [esp + 0x34], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 3
push eax
mov dword [esp + 0x14], ebx
call esi
test eax, eax
jne 0x410262
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0040ff70
push str._savapi_aeoffice.dll
push eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x48], 2
mov dword [esp + 0x24], 7
call fcn.0040f5f0
add esp, 0x14
mov eax, dword [eax]
mov dword [esp + 0x34], ebx
mov ebx, 0xf
push eax
mov dword [esp + 0x14], ebx
call esi
test eax, eax
jne 0x410262
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040ff70
push str._savapi_aebb.dll
push eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x48], 4
mov dword [esp + 0x24], 0x1f
call fcn.0040f5f0
mov eax, dword [eax]
add esp, 0x14
push eax
mov ebx, 0x3f
call esi
mov byte [esp + 0xf], 0
test eax, eax
je 0x410267
mov byte [esp + 0xf], 1
test bl, 0x20
je 0x410293
mov eax, dword [esp + 0x14]
and ebx, 0xffffffdf
add eax, 0xfffffff0
mov dword [esp + 0x10], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 3
test bl, 0x10
je 0x4102c7
mov eax, dword [esp + 0x18]
and ebx, 0xffffffef
add eax, 0xfffffff0
mov dword [esp + 0x10], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 2
test bl, 8
je 0x4102fb
mov eax, dword [esp + 0x1c]
and ebx, 0xfffffff7
add eax, 0xfffffff0
mov dword [esp + 0x10], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 1
test bl, 4
je 0x41032f
mov eax, dword [esp + 0x20]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x10], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41032f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0
test bl, 2
je 0x410363
mov eax, dword [esp + 0x24]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x10], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410363
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
test bl, 1
je 0x410390
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410390
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x4103ae
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret