Function at 0x10029890
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1005bb30
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [0x1006eb44]
mov eax, 0x1005ee88
shr eax, 0x10
mov dword [esp + 0x18], ebp
jne 0x10029902
mov ecx, 0x1005ee88
movzx eax, cx
push eax
lea ecx, [esp + 0x1c]
call fcn.10013a10
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov eax, dword [edi]
push 0x2e
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x1002993a
or eax, 0xffffffff
jmp 0x1002993e
push 0x1005ee88
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x100298e3
mov ecx, esi
lea edx, [esp + 0x18]
call fcn.10011c80
test eax, eax
je 0x100298df
mov ebp, dword [esp + 0x18]
lea edx, [esi + esi]
push edx
push 0x1005ee88
push ebp
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x100298e3
sub eax, dword [edi]
sar eax, 1
mov ecx, dword [edi]
mov ecx, dword [ecx - 8]
lea edx, [esp + 0x14]
push edx
sub ecx, eax
push edi
call fcn.10015170
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x14]
push ebp
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x100299cd
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10029997
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10029997
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebp - 0xc]
cmp eax, 0x1006eb34
je 0x100299b4
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x100299b4
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10029b5a
lea eax, [esp + 0x14]
call fcn.10015ac0
mov ecx, dword [esp + 0x14]
call fcn.1004a2a0
test al, al
jne 0x10029a59
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10029a23
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10029a23
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebp - 0xc]
cmp eax, 0x1006eb34
je 0x10029a40
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x10029a40
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 7
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x10029bbc
lea edx, [esp + 0x14]
push edx
mov eax, 0x1005dbc8
call fcn.10011b50
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], 0
jle 0x10029acc
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
je 0x10029acc
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x10029acc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
lea ebx, [esp + 0x18]
call fcn.10015a20
mov edi, eax
mov eax, ebx
mov byte [esp + 0x28], 2
call fcn.10015ac0
lea esi, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.10015b40
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], 0x10
jl 0x10029b01
lea esi, [esp + 0x14]
call fcn.10015b40
lea esi, [esp + 0x18]
call fcn.10015b40
mov eax, 5
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ebx, 0x1005e048
lea esi, [esp + 0x1c]
call fcn.10015b70
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x2c], 3
call fcn.1004b560
add esp, 4
test al, al
jne 0x10029b55
call fcn.10015b40
lea esi, [esp + 0x14]
call fcn.10015b40
lea esi, [esp + 0x18]
call fcn.10015b40
mov eax, 3
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
call fcn.10015b40
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10029b89
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10029b89
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebp - 0xc]
cmp eax, 0x1006eb34
je 0x10029ba6
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x10029ba6
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea esi, [esp + 0x14]
call fcn.10015b40
lea esi, [esp + 0x18]
call fcn.10015b40
mov eax, 7
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret