Function at 0x1003e4c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a87c2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov edi, ecx
mov dword [ebp + 8], esi
call fcn.10039680
push ebx
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], esi
call fcn.1003a040
add esp, 0x10
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov esi, dword [ebx + 4]
lea edi, [ebx + 4]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x1003e564
cmp dword [esi + 0xc], 0
jl 0x1003e559
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x1003e559
call fcn.1001b030
mov dword [ebp - 0x10], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003e54f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x1003e564
mov eax, dword [ecx - 0xc]
push eax
push ecx
push edi
call fcn.10002530
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003e587
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003e5ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003e5e0
mov eax, dword [edi]
lea eax, [eax - 0x10]
call fcn.1001b030
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
call fcn.1003e6b0
test al, al
je 0x1003e607
mov eax, dword [edi]
lea eax, [eax - 0x10]
call fcn.1001b030
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, 2
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
jmp 0x1003e621
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x101ff06c
call fcn.10001c90
mov dword [ebp - 4], 3
mov ebx, 4
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp + 8], ebx
call fcn.1001b030
mov esi, dword [ebp + 0xc]
add eax, 0x10
or ebx, 1
mov dword [esi], eax
mov dword [ebp - 4], 2
test bl, 4
je 0x1003e66a
mov eax, dword [ebp - 0x1c]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [ebp + 8], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003e66a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x1003e695
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003e695
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 8