Function at 0x40e4b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a07dd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x61ac94]
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.0040e2c0
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.0040d150
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 0x40e5b2
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0040e2c0
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.0040d150
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 0x40e5b2
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040e2c0
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.0040d150
mov eax, dword [eax]
add esp, 0x14
push eax
mov ebx, 0x3f
call esi
mov byte [esp + 0xf], 0
test eax, eax
je 0x40e5b7
mov byte [esp + 0xf], 1
test bl, 0x20
je 0x40e5e3
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 0x40e5e3
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 0x40e617
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 0x40e617
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 0x40e64b
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 0x40e64b
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 0x40e67f
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 0x40e67f
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 0x40e6b3
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 0x40e6b3
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 0x40e6e0
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 0x40e6e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x40e6fe
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