Function at 0x10016310
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100479c0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10062698]
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 0x10016360
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov edx, 0x7ffffffe
cmp edi, 8
jae 0x10016393
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 0x100163e4
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.100074b0
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.10023350
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 0x1001642a
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 0x1001646f
mov esi, edi
lea ecx, [ebp - 0x28]
or esi, 7
mov eax, 0x7ffffffe
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.100074b0
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.10023350
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.10013435
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x1001649e
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 0x100164d3
mov dword [esi + 0x10], 1
mov dword [esi + 4], 1
mov dword [esi + 0xc], 1
lea ecx, [ebp - 0x28]
call fcn.10006ca0
lea ecx, [ebp - 0x70]
call fcn.10006ca0
jmp 0x10016761
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 0x10016504
movups xmm0, xmmword [eax]
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
jmp 0x1001653c
mov eax, dword [ebp - 0x80]
mov ecx, 0x7ffffffe
cmp eax, 0x7ffffffe
cmova eax, ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x80], eax
inc eax
push eax
call fcn.100074b0
push dword [ebp - 0x84]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x7c]
push eax
call fcn.10023350
mov eax, dword [ebp - 0x80]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edi
push 3
push 0x100503bc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10013435
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 0x10016583
lea ecx, [ebp - 0x40]
mov dword [esi + 0x10], 1
mov dword [esi + 4], 1
call fcn.10006ca0
jmp 0x100164be
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 0x100165b6
movups xmm0, xmmword [eax]
mov dword [ebp - 0x44], 7
movups xmmword [ebp - 0x58], xmm0
jmp 0x100165f0
mov esi, edi
lea ecx, [ebp - 0x58]
or esi, 7
mov eax, 0x7ffffffe
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.100074b0
push dword [ebp - 0x84]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x7c]
push eax
call fcn.10023350
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.10013435
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 0x10016645
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x58]
mov dword [eax + 0x10], 2
mov dword [eax + 4], 1
call fcn.10006ca0
lea ecx, [ebp - 0x40]
call fcn.10006ca0
jmp 0x100164be
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x1001667f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016675
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001677c
push edx
push ecx
call fcn.1001b13d
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 0x100166cd
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100166c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016781
push edx
push ecx
call fcn.1001b13d
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 0x10016717
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001670d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016786
push edx
push ecx
call fcn.1001b13d
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 0x10016761
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x10016757
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001678b
push ecx
push esi
call fcn.1001b13d
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.1001b4ae
mov esp, ebp
pop ebp
ret
call fcn.10026bbe
call fcn.10026bbe
call fcn.10026bbe
call fcn.10026bbe
int3