Function at 0x1005b900
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c836c
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x1022b584]
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
mov dword [ebp - 0x428], ecx
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
call edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1005b985
lea eax, [ebp - 0x420]
push eax
call edi
sub esi, 1
jne 0x1005b977
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x420]
push str.NetBridge.dll
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1005bbb9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
shr eax, 0x10
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1005ba02
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x424]
push eax
call fcn.1000f350
jmp 0x1005ba32
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005ba10
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.1000f6e0
mov esi, dword [ebp - 0x424]
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1005ba4e
xor edi, edi
jmp 0x1005ba5f
push esi
call fcn.1015b3b0
add esp, 4
mov edi, eax
neg edi
sbb edi, edi
neg edi
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005ba80
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x1005baa4
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x218]
push eax
call fcn.1005b870
test eax, eax
je 0x1005baa4
mov eax, 1
jmp 0x1005bb9b
push str.NetBase.dll
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1005bbc3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x42c], 0
mov dword [ebp - 4], 2
jne 0x1005bb01
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x424]
push eax
call fcn.1000f350
jmp 0x1005bb32
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005bb10
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.1000f6e0
mov esi, dword [ebp - 0x424]
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1005bb4e
xor edi, edi
jmp 0x1005bb5f
push esi
call fcn.1015b3b0
add esp, 4
mov edi, eax
neg edi
sbb edi, edi
neg edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1005bb7b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x1005bb99
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x218]
push eax
call fcn.1005b870
test eax, eax
jne 0x1005ba9a
xor eax, eax
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.101799ce
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10009b10
push 0x80004005
call fcn.10009b10
int3