Function at 0x1005cff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cc18a
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x1010445c]
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 edi, ecx
mov dword [ebp - 0x4c4], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c8], ebx
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4c0], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov esi, dword [edi + 0x48]
mov dword [ebp - 4], 0
mov dword [ebp - 0x4bc], 1
test esi, esi
je 0x1005d147
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.1009c2f0
add esp, 0xc
call esi
mov esi, eax
test esi, esi
je 0x1005d127
push esi
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.100b1668
mov eax, dword [edi + 0x3c]
push esi
call eax
add esp, 0x10
mov dword [ebp - 0x418], 0
xor eax, eax
mov dword [ebp - 0x414], 7
lea ecx, [ebp - 0x428]
mov word [ebp - 0x428], ax
push 1
push 0x100d8b38
call fcn.10014220
push 0xfde9
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.10076dc0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
push ecx
push eax
mov ecx, edi
call fcn.100612a0
lea ecx, [ebp - 0x470]
call fcn.10004d80
lea ecx, [ebp - 0x428]
call fcn.10004d80
mov eax, ebx
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.100751d1
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 0
jbe 0x1005d127
mov edi, dword [edi + 0x88]
mov esi, dword [edi]
cmp esi, edi
je 0x1005d127
nop dword [eax]
lea ebx, [esi + 0x10]
push ebx
lea ecx, [ebp - 0x4b8]
call fcn.1001df80
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x4a0]
call fcn.10059600
push 0
push 0x100d29bc
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 4
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
call fcn.10007b10
push 0xa
push str.product_id
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 5
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
call fcn.10007b10
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.1005a3a0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x1005d21a
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.10076dc0
add esp, 0xc
mov edx, dword [ebp - 0x474]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x1005d26d
mov ecx, dword [ebp - 0x488]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d263
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d4cd
push edx
push ecx
call fcn.10074e52
add esp, 8
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0xf
mov byte [ebp - 0x488], 0
mov edx, dword [ebp - 0x42c]
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x1005d2c6
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d2bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d4cd
push edx
push ecx
call fcn.10074e52
add esp, 8
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
mov edx, dword [ebp - 0x444]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x1005d31f
mov ecx, dword [ebp - 0x458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d315
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d4cd
push edx
push ecx
call fcn.10074e52
add esp, 8
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
mov ecx, dword [ebp - 0x4c4]
cmovae eax, dword [ebp - 0x428]
push eax
push 1
lea eax, [ebp - 0x470]
mov dword [ebp - 0x448], 0
push eax
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
call fcn.1005cc00
or dword [ebp - 0x4bc], 2
lea eax, [ebp - 0x470]
cmp dword [ebp - 0x45c], 8
cmovae eax, dword [ebp - 0x470]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x45c]
mov ebx, eax
cmp edx, 8
jb 0x1005d3c7
mov ecx, dword [ebp - 0x470]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d3bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d4cd
push edx
push ecx
call fcn.10074e52
add esp, 8
test ebx, ebx
mov ebx, dword [ebp - 0x4c0]
je 0x1005d3f5
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x428]
push ecx
cmp dword [ebx + 8], eax
je 0x1005d3ed
mov ecx, eax
call fcn.1001df80
add dword [ebx + 4], 0x18
jmp 0x1005d3f5
push eax
mov ecx, ebx
call fcn.10022f50
mov edx, dword [ebp - 0x414]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x1005d439
mov ecx, dword [ebp - 0x428]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d42f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d4cd
push edx
push ecx
call fcn.10074e52
add esp, 8
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 0
call fcn.10056d10
mov edx, dword [ebp - 0x4a4]
cmp edx, 8
jb 0x1005d484
mov ecx, dword [ebp - 0x4b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d47a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d4cd
push edx
push ecx
call fcn.10074e52
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1005d4aa
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1005d4a6
cmp esi, dword [eax + 8]
jne 0x1005d4a6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1005d496
mov esi, eax
jmp 0x1005d4c0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1005d4c0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1005d4b4
cmp esi, edi
jne 0x1005d160
jmp 0x1005d127
call fcn.1009fa75
int3