Function at 0x41b520
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49c4bd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x4c1bd8]
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.0041b1c0
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.00416660
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 0x41b622
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0041b1c0
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.00416660
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 0x41b622
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041b1c0
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.00416660
mov eax, dword [eax]
add esp, 0x14
push eax
mov ebx, 0x3f
call esi
mov byte [esp + 0xf], 0
test eax, eax
je 0x41b627
mov byte [esp + 0xf], 1
test bl, 0x20
je 0x41b653
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 0x41b653
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 0x41b687
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 0x41b687
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 0x41b6bb
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 0x41b6bb
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 0x41b6ef
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 0x41b6ef
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 0x41b723
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 0x41b723
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 0x41b750
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 0x41b750
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x41b76e
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