Function at 0x10013df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087ae9
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100b52f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [ebp - 0x42c], ebx
call fcn.1005fb60
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100b8c60]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push str.Utils_netul.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10013f3e
call fcn.1000a780
mov ecx, eax
test ecx, ecx
je 0x100140d5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.10009430
test al, al
jne 0x10013ef3
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013ed1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.1000cfa0
mov dword [ebp - 4], 1
mov ebx, 1
mov dword [ebp - 0x42c], ebx
call fcn.10013c80
mov esi, dword [ebp - 0x428]
mov edi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10013f44
push esi
call fcn.100356d0
add esp, 4
test eax, eax
je 0x10013f44
push esi
mov ecx, edi
call fcn.10013d60
test eax, eax
je 0x10013f44
mov byte [ebp - 0x421], bl
jmp 0x10013f4b
mov esi, dword [ebp - 0x428]
mov byte [ebp - 0x421], 0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
test bl, 1
je 0x10013f7d
and ebx, 0xfffffffe
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 4], edi
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10013f7d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x421], 0
je 0x10013f8d
mov al, 1
jmp 0x100140b9
call fcn.10013c80
push 0x208
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1005fb60
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
push eax
call esi
push str.NetBridge.dll
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.1000a780
mov ecx, eax
test ecx, ecx
je 0x100140df
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.10009430
test al, al
jne 0x10014054
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014032
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.1000cfa0
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x428]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10014070
mov bl, 1
jmp 0x1001407e
push esi
call fcn.100356d0
add esp, 4
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1001409a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x100140a2
xor eax, eax
jmp 0x100140b4
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x420]
push eax
call fcn.10013d60
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10053047
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002fe0
push 0x80004005
call fcn.10002fe0
int3