Function at 0x1005f190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c3b57
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x100fe39c]
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 ebx, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10087da0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1005f211
lea eax, [ebp - 0x218]
push eax
call edi
sub esi, 1
jne 0x1005f203
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005f237
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10008f70
push 0x100da0d8
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.1002a480
mov esi, eax
push str.ProductInfoEx.dat
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1002a480
add esp, 0x18
push esi
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.1005ae60
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x1005f2ea
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005f2e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f53e
push edx
push ecx
call fcn.1004f19d
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x1005f34a
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005f340
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f543
push edx
push ecx
call fcn.1004f19d
add esp, 8
push str.utilsProductInfo.dat
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.1002a480
mov esi, eax
push str.utilsProductInfoEx.dat
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1002a480
add esp, 0x18
push esi
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.1005ae60
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x1005f3d4
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005f3ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f548
push edx
push ecx
call fcn.1004f19d
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x1005f434
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005f42a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f54d
push edx
push ecx
call fcn.1004f19d
add esp, 8
push 0x100da0d8
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.1002a480
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1005f457
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x24c]
mov esi, eax
cmp edx, 8
jb 0x1005f4a0
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005f496
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f552
push edx
push ecx
call fcn.1004f19d
add esp, 8
lea eax, [ebp - 0x218]
test esi, esi
je 0x1005f4b1
push str.ProductInfo.dat
jmp 0x1005f4b6
push str.utilsProductInfo.dat
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
mov ecx, ebx
call fcn.1005f560
mov edx, dword [ebp - 0x21c]
mov bl, al
cmp edx, 8
jb 0x1005f51e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005f514
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f557
push edx
push ecx
call fcn.1004f19d
add esp, 8
mov al, bl
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.1004f51c
mov esp, ebp
pop ebp
ret 4
call fcn.1008b33c
call fcn.1008b33c
call fcn.1008b33c
call fcn.1008b33c
call fcn.1008b33c
call fcn.1008b33c
int3