Function at 0x10073cb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015d9d1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101c0618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10073f0a
mov edi, dword [ebp + 8]
mov ecx, edx
add edi, 4
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10073cf3
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.1000adf0
push 0x10179aa4
push 0x10179d30
mov ecx, edi
call fcn.10045040
mov ecx, dword [edi]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x10073d37
lea eax, [ecx - 0x10]
push eax
call fcn.1000bc60
add esp, 4
add eax, 0x10
jmp 0x10073d6a
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x10073d47
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x10073d53
call fcn.1000d010
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.1000dd10
mov eax, dword [ebp + 0xc]
mov edx, 0x10179aa4
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x10073d97
test si, si
je 0x10073d93
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x10073d97
add ecx, 4
add edx, 4
test si, si
jne 0x10073d71
xor esi, esi
jmp 0x10073d9c
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10073db4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 4
test esi, esi
jne 0x10073e4b
mov edx, dword [edi]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x10073de6
lea eax, [edx - 0x10]
push eax
call fcn.1000bc60
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
jmp 0x10073e11
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x10073df6
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x10073e02
call fcn.1000d010
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [edi]
lea ecx, [ebp + 0xc]
call fcn.1000dd10
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.1000b6e0
lea edx, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov ebx, 0xc
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10073e4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10073e4e
or esi, 0xffffffff
push edi
mov dword [ebp + 0xc], ebx
call fcn.10076990
add esp, 4
test eax, eax
jne 0x10073ea3
push 0x10179aa4
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.10019d90
push dword [0x101c038c]
or ebx, 1
mov dword [ebp - 4], 1
push eax
lea eax, [ebp + 8]
mov dword [ebp - 0x10], ebx
push eax
call fcn.10019d90
mov ebx, dword [ebp + 0xc]
add esp, 0x18
or ebx, 3
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp + 0xf], 1
test eax, eax
je 0x10073ea7
mov byte [ebp + 0xf], 0
test bl, 2
je 0x10073ecc
mov edx, dword [ebp + 8]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10073ecc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x10073ef0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10073ef0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
je 0x10073f0a
push dword [0x101c0390]
push 0x101735f8
push edi
call fcn.1000efe0
add esp, 0xc
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