Function at 0x10060b70
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
mov ebx, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ebx
push esi
push edi
mov edi, edx
test ebx, ebx
je 0x100612da
cmp word [ebx], 0
je 0x100612da
push 4
push 0x1018d608
push ebx
call fcn.1015c248
add esp, 0xc
lea ecx, [ebx + 8]
test eax, eax
cmovne ecx, ebx
movzx eax, word [ecx]
test ax, ax
je 0x10060bf3
mov edx, eax
cmp dx, 0x2a
je 0x100612da
cmp word [ecx], 0x3f
je 0x100612da
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x10060bd1
mov eax, dword [0x101c5980]
lea ecx, [esp + 0x40]
push ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.1000bc60
mov eax, dword [0x101c5980]
lea ecx, [esp + 0x50]
push 0x5c
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.1000bf50
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x34]
mov eax, dword [0x101c5980]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
cmp esi, 1
jg 0x10060c70
lea eax, [esp + 0x40]
push eax
call fcn.1000bdd0
jmp 0x10060c7e
lea eax, [esi - 1]
push 1
lea eax, [ebx + eax*2]
push eax
call fcn.1000bd30
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x54]
jne 0x10060ccb
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x34]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10060cb6
test dx, dx
je 0x10060cb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10060cb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10060c90
xor eax, eax
jmp 0x10060cbb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10060ccb
mov eax, 3
xor ecx, ecx
jmp 0x10060d79
mov eax, dword [0x101c5980]
lea ecx, [esp + 0x1c]
push 0x2f
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.1000bf50
mov eax, dword [0x101c5980]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
cmp esi, 1
jg 0x10060d1d
lea eax, [esp + 0x40]
push eax
call fcn.1000bdd0
jmp 0x10060d2b
lea eax, [esi - 1]
push 1
lea eax, [ebx + eax*2]
push eax
call fcn.1000bd30
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x20]
jne 0x10060d88
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10060d66
test dx, dx
je 0x10060d62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10060d66
add eax, 4
add ecx, 4
test dx, dx
jne 0x10060d40
xor eax, eax
jmp 0x10060d6b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10060d88
mov eax, 0xf
mov ecx, 8
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x10060db6
jmp 0x10060d92
mov byte [esp + 0x13], 0
mov eax, 0xf
mov ecx, dword [esp + 0x28]
and eax, 0xfffffff7
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x10060db6
cmp ecx, dword [0x101c5980]
je 0x10060db6
push ecx
call fcn.10154f5a
mov eax, dword [esp + 0x18]
add esp, 4
test al, 4
je 0x10060dd3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10060dd3
cmp eax, dword [0x101c5980]
je 0x10060dd3
push eax
call fcn.10154f5a
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10060dec
cmp eax, dword [0x101c5980]
je 0x10060dec
push eax
call fcn.10154f5a
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10060e05
cmp eax, dword [0x101c5980]
je 0x10060e05
push eax
call fcn.10154f5a
add esp, 4
cmp byte [esp + 0x13], 0
je 0x10060e76
mov eax, dword [0x101c5980]
lea ecx, [esi - 1]
mov dword [esp + 0x50], eax
cmp ecx, esi
mov eax, esi
mov dword [esp + 0x54], 0
cmovl eax, ecx
mov dword [esp + 0x58], 0
test eax, eax
jns 0x10060e37
xor ecx, ecx
jmp 0x10060e3c
cmp ecx, esi
cmovge ecx, esi
push ecx
push ebx
lea ecx, [esp + 0x58]
call fcn.1000bd30
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x44]
call fcn.1000bdd0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10060e6e
cmp eax, dword [0x101c5980]
je 0x10060e6e
push eax
call fcn.10154f5a
add esp, 4
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
lea eax, [esp + 0xa0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x1006103d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10060ebb
cmp eax, 3
jne 0x1006100f
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x1006100f
mov eax, dword [0x101c5980]
mov ecx, 4
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
cmp esi, ecx
jg 0x10060ee7
test esi, esi
jns 0x10060ee5
xor ecx, ecx
jmp 0x10060eea
cmp esi, ecx
cmovle ecx, esi
push ecx
push ebx
lea ecx, [esp + 0x58]
call fcn.1000bd30
mov eax, dword [esp + 0x50]
mov ecx, 0x1018d608
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10060f2c
test dx, dx
je 0x10060f22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10060f2c
add eax, 4
add ecx, 4
test dx, dx
jne 0x10060f00
mov dword [esp + 0x14], 0
jmp 0x10060f35
sbb eax, eax
or eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10060f4e
cmp eax, dword [0x101c5980]
je 0x10060f4e
push eax
call fcn.10154f5a
add esp, 4
cmp dword [esp + 0x14], 0
je 0x10060fdb
mov eax, dword [0x101c5980]
lea ecx, [esp + 0x50]
push 0x1018d608
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.1000bc60
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
call fcn.1000ba90
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
call fcn.1000bdd0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10060fba
cmp eax, dword [0x101c5980]
je 0x10060fba
push eax
call fcn.10154f5a
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10060fd3
cmp eax, dword [0x101c5980]
je 0x10060fd3
push eax
call fcn.10154f5a
add esp, 4
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov eax, ebx
test esi, esi
je 0x10060ff7
mov ecx, 0x5c
cmp word [eax], 0x2f
jne 0x10060fef
mov word [eax], cx
add eax, 2
sub esi, 1
jne 0x10060fe6
lea eax, [esp + 0xa0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x1006103d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x7b
jne 0x10061033
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10061033
mov byte [edi + 8], 1
jmp 0x100612a6
mov dword [edi + 0x18], esi
xor al, al
jmp 0x100612a8
mov edx, dword [esp + 0xa0]
mov eax, edx
mov ecx, dword [esp + 0xc4]
and eax, 0x400
je 0x10061067
cmp ecx, 0xa000000c
jne 0x10061067
mov byte [esp + 0x13], 1
mov byte [edi + 9], 1
jmp 0x10061074
mov byte [edi + 9], 0
mov byte [esp + 0x13], 0
test eax, eax
je 0x10061080
cmp ecx, 0xa0000003
jne 0x10061080
mov al, 1
jmp 0x10061082
xor al, al
mov byte [edi + 0xa], al
mov dword [edi + 0x44], edx
test dl, 0x10
je 0x10061091
mov byte [edi + 8], 1
cmp byte [esp + 0x13], 0
jne 0x100610a6
cmp byte [edi + 8], 0
jne 0x100610a6
test al, al
jne 0x100610a6
mov byte [edi + 0xc], 1
cmp byte [edi + 0xc], 0
je 0x100610c4
mov ecx, dword [esp + 0xbc]
xor eax, eax
add eax, dword [esp + 0xc0]
mov dword [edi], eax
adc ecx, 0
mov dword [edi + 4], ecx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
shr edx, 9
and dl, 1
mov byte [edi + 0xd], dl
je 0x10061135
push 0
push 0
push 3
push 0
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
push ebx
movups xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x1006112f
push 0x18
lea eax, [esp + 0x54]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x1006112f
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
push esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
call fcn.1000c620
mov ecx, dword [esp + 0xac]
mov dword [edi + 0x24], edx
mov edx, dword [esp + 0xb0]
mov dword [edi + 0x20], eax
call fcn.1000c620
mov ecx, dword [esp + 0xb4]
mov dword [edi + 0x2c], edx
mov edx, dword [esp + 0xb8]
mov dword [edi + 0x28], eax
call fcn.1000c620
cmp byte [ebp + 8], 0
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], edx
je 0x10061232
cmp byte [edi + 9], 0
jne 0x1006119a
cmp byte [edi + 0xa], 0
je 0x10061232
mov eax, dword [0x101c5980]
lea edx, [esp + 0x50]
mov ecx, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.100606d0
test eax, eax
je 0x100611d1
push dword [esp + 0x50]
call fcn.101565d5
add esp, 4
mov dword [edi + 0x48], eax
cmp byte [edi + 8], 0
jne 0x10061219
push 0
push 0
push 3
push 0
push 0
push 0
push ebx
call esi
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x10061219
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10061219
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10061232
cmp eax, dword [0x101c5980]
je 0x10061232
push eax
call fcn.10154f5a
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x1006129c
cmp byte [edi + 8], 0
jne 0x1006129c
push 0
push 0
push 3
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1006129c
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1006129c
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov dword [edi + 0x58], eax
xor eax, eax
add eax, dword [esp + 0x9c]
mov dword [edi + 0x60], eax
mov eax, dword [esp + 0x88]
adc ecx, 0
push esi
mov dword [edi + 0x64], ecx
mov dword [edi + 0x68], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov byte [esp + 0x13], al
test ebx, ebx
je 0x100612dc
cmp ebx, dword [0x101c5980]
je 0x100612dc
push ebx
call fcn.10154f5a
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret