Function at 0x1005d190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100acfc0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100db55c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x8c], esi
lea eax, [esi + 0x30]
mov dword [esi + 4], 0
cmp dword [eax + 0x14], 8
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x74], eax
jb 0x1005d1e0
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov edx, SysReAllocString
cmp edi, 8
jae 0x1005d213
movups xmm0, xmmword [eax]
mov ecx, 7
mov eax, edi
or eax, ecx
mov dword [ebp - 0x88], ecx
movups xmmword [ebp - 0x70], xmm0
mov edx, ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x78], eax
jmp 0x1005d264
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
mov dword [ebp - 0x80], eax
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 0x88], ecx
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x70]
call fcn.1000abe0
mov ecx, eax
lea eax, [edi*2 + 2]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
push ecx
mov dword [ebp - 0x70], ecx
call fcn.100757d0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov edx, eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], edi
cmp edx, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x18], 0
cmovae ecx, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x7c], ecx
cmp edi, 8
jae 0x1005d2aa
movups xmm0, xmmword [ecx]
lea eax, [edi*2 + 2]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x84], eax
movups xmmword [ebp - 0x28], xmm0
jmp 0x1005d2ef
mov esi, edi
lea ecx, [ebp - 0x28]
or esi, 7
mov eax, SysReAllocString
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.1000abe0
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x28], eax
push ecx
push dword [ebp - 0x7c]
mov dword [ebp - 0x84], ecx
push eax
call fcn.100757d0
mov dword [ebp - 0x14], esi
add esp, 0xc
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x18], edi
push 4
push str..gen
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10011070
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x1005d31e
mov ecx, dword [ebp - 0x28]
lea eax, [edi*2 + 2]
mov dword [ebp - 0x84], eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005d353
mov dword [esi + 0x10], 1
mov dword [esi + 4], 1
mov dword [esi + 0xc], 1
lea ecx, [ebp - 0x28]
call fcn.10006e60
lea ecx, [ebp - 0x70]
call fcn.10006e60
jmp 0x1005d5e1
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x70]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x7c], eax
cmp edi, 8
jae 0x1005d384
movups xmm0, xmmword [eax]
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
jmp 0x1005d3bc
mov eax, dword [ebp - 0x80]
mov ecx, SysReAllocString
cmp eax, 0x7ffffffe
cmova eax, ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x80], eax
inc eax
push eax
call fcn.1000abe0
push dword [ebp - 0x84]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x7c]
push eax
call fcn.100757d0
mov eax, dword [ebp - 0x80]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edi
push 3
push 0x100b821c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10011070
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005d403
lea ecx, [ebp - 0x40]
mov dword [esi + 0x10], 1
mov dword [esi + 4], 1
call fcn.10006e60
jmp 0x1005d33e
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x70]
mov esi, dword [ebp - 0x78]
cmovae eax, esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x7c], eax
cmp edi, 8
jae 0x1005d436
movups xmm0, xmmword [eax]
mov dword [ebp - 0x44], 7
movups xmmword [ebp - 0x58], xmm0
jmp 0x1005d470
mov esi, edi
lea ecx, [ebp - 0x58]
or esi, 7
mov eax, SysReAllocString
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.1000abe0
push dword [ebp - 0x84]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x7c]
push eax
call fcn.100757d0
mov dword [ebp - 0x44], esi
add esp, 0xc
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x48], edi
push 9
push str..debug.on
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.10011070
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005d4c5
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x58]
mov dword [eax + 0x10], 2
mov dword [eax + 4], 1
call fcn.10006e60
lea ecx, [ebp - 0x40]
call fcn.10006e60
jmp 0x1005d33e
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x1005d4ff
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d4f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d5fc
push edx
push ecx
call fcn.1006a79e
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x1005d54d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d543
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d601
push edx
push ecx
call fcn.1006a79e
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x1005d597
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d58d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d606
push edx
push ecx
call fcn.1006a79e
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x14], 7
cmp eax, 8
jb 0x1005d5e1
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x1005d5d7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d60b
push ecx
push esi
call fcn.1006a79e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
call fcn.10079a6e
call fcn.10079a6e
call fcn.10079a6e
call fcn.10079a6e
int3