Function at 0x10001460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100873cf
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10b4
call fcn.100790e0
mov eax, dword [0x100a5c90]
xor eax, esp
mov dword [esp + 0x10b0], eax
push ebx
push esi
push edi
mov eax, dword [0x100a5c90]
xor eax, esp
push eax
lea eax, [esp + 0x10c8]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [ebp + 8], bl
je 0x10001559
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], ax
lea edi, [esp + 0x84]
mov dword [esp + 0x10d0], ebx
call fcn.1000e870
mov edi, eax
lea esi, [esp + 0x30]
mov byte [esp + 0x10d0], 1
call fcn.100037e0
mov edi, 8
mov byte [esp + 0x10d0], bl
cmp dword [esp + 0x98], edi
jb 0x1000150e
mov ecx, dword [esp + 0x84]
push ecx
call fcn.10066b10
add esp, 4
cmp dword [esp + 0x40], ebx
jne 0x10001528
cmp dword [esp + 0x44], edi
jb 0x10001a71
mov edx, dword [esp + 0x30]
push edx
jmp 0x10001a69
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x10001536
lea ecx, [esp + 0x30]
push 1
call fcn.1000b660
mov esi, eax
cmp dword [esp + 0x44], edi
jb 0x10001552
mov eax, dword [esp + 0x30]
push eax
call fcn.10066b10
add esp, 4
mov eax, esi
jmp 0x10001a73
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], cx
mov dword [esp + 0x10d0], 2
xor edx, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], dx
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
push 0x800
mov byte [esp + 0x10d4], 3
mov ecx, 0x400
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc0]
push eax
push 0x1c
lea ecx, [esp + 0x90]
push ecx
push fcn.10001460
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea eax, [esp + 0xbc]
mov word [esp + 0x30], dx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100015f6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc0]
lea esi, [esp + 0x34]
call fcn.10003a30
lea eax, [esp + 0x4c]
push eax
mov ebx, esi
mov byte [esp + 0x10d4], 4
call fcn.1001f720
mov ebx, 8
add esp, 4
mov byte [esp + 0x10d0], 3
cmp dword [esp + 0x44], ebx
jb 0x1000164d
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
push 0xc
mov eax, str.Piencsys.pky
lea esi, [esp + 0x34]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], dx
call fcn.10003a30
lea eax, [esp + 0x4c]
push eax
mov edx, esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x10d4], 5
call fcn.1001fca0
add esp, 4
mov edi, eax
lea esi, [esp + 0x14]
mov byte [esp + 0x10d0], 6
call fcn.100037e0
cmp dword [esp + 0x7c], ebx
jb 0x100016b5
mov ecx, dword [esp + 0x68]
push ecx
call fcn.10066b10
add esp, 4
xor esi, esi
xor edx, edx
mov edi, 7
mov byte [esp + 0x10d0], 3
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], esi
mov word [esp + 0x68], dx
cmp dword [esp + 0x44], ebx
jb 0x100016e6
mov eax, dword [esp + 0x30]
push eax
call fcn.10066b10
add esp, 4
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], ebx
jae 0x100016f4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001770
shr eax, 4
not eax
and eax, 1
je 0x10001770
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], ebx
jae 0x10001718
lea ecx, [esp + 0x14]
push 2
call fcn.1000b660
cmp eax, esi
jne 0x10001743
cmp dword [esp + 0x28], ebx
jb 0x10001736
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10066b10
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
jmp 0x10001a57
call fcn.10001280
cmp eax, esi
je 0x100019ce
call fcn.100011f0
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.10003710
lea ecx, [esp + 0x4c]
call fcn.10003710
mov eax, esi
jmp 0x10001a73
lea ecx, [esp + 0x4c]
push ecx
mov ebx, ecx
call fcn.1001f720
add esp, 4
mov dword [esp + 0x78], esi
xor edx, edx
push 0xc
mov eax, str.Piencsys.pky
lea esi, [esp + 0x6c]
mov dword [esp + 0x80], edi
mov word [esp + 0x6c], dx
call fcn.10003a30
mov eax, ebx
push eax
mov edx, esi
lea ecx, [esp + 0x88]
mov byte [esp + 0x10d4], 7
call fcn.1001fca0
add esp, 4
mov ebx, 8
mov edi, eax
lea esi, [esp + 0x14]
mov byte [esp + 0x10d0], bl
call fcn.100037e0
cmp dword [esp + 0x98], ebx
jb 0x100017ed
mov ecx, dword [esp + 0x84]
push ecx
call fcn.10066b10
add esp, 4
xor edi, edi
xor edx, edx
mov esi, 7
mov byte [esp + 0x10d0], 3
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], edi
mov word [esp + 0x84], dx
cmp dword [esp + 0x7c], ebx
jb 0x10001827
mov eax, dword [esp + 0x68]
push eax
call fcn.10066b10
add esp, 4
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], ebx
jae 0x10001835
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000187a
shr eax, 4
not eax
and eax, 1
je 0x1000187a
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], ebx
jae 0x10001859
lea ecx, [esp + 0x14]
push 2
call fcn.1000b660
cmp eax, edi
je 0x100019ce
call fcn.10001280
cmp eax, edi
jne 0x10001750
jmp 0x100019ce
xor ecx, ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov word [esp + 0x30], cx
lea ecx, [esp + 0x30]
mov byte [esp + 0x10d0], 9
call fcn.1001fe80
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x400
lea edi, [esp + 0xbc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x100018c2
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x40]
lea edx, [ecx + ecx]
push edx
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10073cd0
mov eax, dword [esp + 0x58]
add esp, 0xc
cmp dword [esp + 0x60], ebx
jae 0x100018e9
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xc0]
push ecx
call fcn.10066cb4
add esp, 8
test eax, eax
je 0x10001a08
mov eax, str.Piencsys.pky
lea ecx, [esp + 0x68]
call fcn.100036d0
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x84]
mov byte [esp + 0x10d0], 0xa
call fcn.100036d0
lea edx, [esp + 0x84]
push edx
lea edx, [esp + 0x6c]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x10d4], 0xb
call fcn.1001fca0
add esp, 4
mov edi, eax
lea esi, [esp + 0x14]
mov byte [esp + 0x10d0], 0xc
call fcn.100037e0
lea ecx, [esp + 0xa0]
call fcn.10003710
lea ecx, [esp + 0x84]
call fcn.10003710
lea ecx, [esp + 0x68]
mov byte [esp + 0x10d0], 9
call fcn.10003710
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], ebx
jae 0x10001996
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001a03
shr eax, 4
not eax
and eax, 1
je 0x10001a03
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], ebx
jae 0x100019ba
lea ecx, [esp + 0x14]
push 2
call fcn.1000b660
test eax, eax
jne 0x100019e5
lea ecx, [esp + 0x30]
call fcn.10003710
lea ecx, [esp + 0x14]
call fcn.10003710
lea ecx, [esp + 0x4c]
call fcn.10003710
jmp 0x10001a71
call fcn.10001280
test eax, eax
je 0x100019c5
call fcn.100011f0
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.10003710
jmp 0x10001757
mov esi, 7
mov byte [esp + 0x10d0], 3
cmp dword [esp + 0x44], ebx
jb 0x10001a23
mov eax, dword [esp + 0x30]
push eax
call fcn.10066b10
add esp, 4
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], ebx
jae 0x10001a31
lea ecx, [esp + 0x14]
push 2
call fcn.1000b660
cmp dword [esp + 0x28], ebx
jb 0x10001a4b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10066b10
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0
xor edx, edx
mov word [esp + 0x14], dx
cmp dword [esp + 0x60], ebx
jb 0x10001a71
mov eax, dword [esp + 0x4c]
push eax
call fcn.10066b10
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x10c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10b0]
xor ecx, esp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret