Function at 0x100145f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001cb28
push 0x1001ac6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 4
mov ecx, dword [ebp + 8]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
mov dword [ebp - 0x64], eax
call dword [0x1001c2ec]
cmp eax, 0x7a
jne 0x10014932
mov edx, dword [ebp - 0x54]
push edx
mov edi, dword [0x1001c350]
call edi
add esp, 4
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x10014932
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 4
mov eax, dword [ebp + 8]
push eax
call esi
mov dword [ebp - 0x64], eax
cmp eax, ebx
je 0x10014932
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x38]
push edx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
mov esi, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [0x1001c094]
call ebx
call dword [0x1001c2ec]
cmp eax, 0x7a
jne 0x10014930
mov ecx, dword [ebp - 0x2c]
push ecx
call edi
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x38]
push edx
call edi
add esp, 8
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x38]
push edx
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
push esi
push 0
call ebx
mov dword [ebp - 0x64], eax
test eax, eax
je 0x10014930
push 1
lea edx, [ebp - 0x7c]
push edx
call dword [0x1001c08c]
test eax, eax
je 0x10014930
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [0x1001c0f8]
test eax, eax
je 0x10014930
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jne 0x10014745
mov dword [ebp - 0x3c], ecx
jmp 0x1001475c
push 2
push 0xc
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [0x1001c010]
test eax, eax
je 0x10014930
mov edx, dword [ebp - 0x60]
push edx
call dword [0x1001c084]
mov ecx, dword [ebp - 0x4c]
lea esi, [eax + ecx + 8]
mov dword [ebp - 0x20], esi
push esi
call edi
add esp, 4
mov dword [ebp - 0x30], eax
push 2
push esi
push eax
call dword [0x1001c080]
test eax, eax
je 0x10014930
xor ebx, ebx
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x3c], ebx
je 0x10014804
cmp dword [ebp - 0x50], ebx
je 0x10014804
xor esi, esi
mov dword [ebp - 0x24], esi
mov ebx, dword [0x1001c060]
mov edi, dword [0x1001c064]
cmp esi, dword [ebp - 0x50]
jae 0x1001480f
lea edx, [ebp - 0x5c]
push edx
push esi
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x1001c068]
test eax, eax
je 0x10014930
mov eax, dword [ebp - 0x5c]
test byte [eax + 1], 0x10
jne 0x1001480f
add eax, 8
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call ebx
test eax, eax
jne 0x100147fe
xor edx, edx
mov eax, dword [ebp - 0x5c]
mov dx, word [eax + 2]
push edx
push eax
push 0xffffffffffffffff
push 2
mov eax, dword [ebp - 0x30]
push eax
call edi
test eax, eax
je 0x10014930
inc dword [ebp - 0x68]
inc esi
mov dword [ebp - 0x24], esi
jmp 0x100147ab
mov edi, dword [0x1001c064]
mov esi, dword [ebp - 0x24]
jmp 0x10014811
xor ebx, ebx
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 3
push 2
mov eax, dword [ebp - 0x30]
push eax
call dword [0x1001c06c]
test eax, eax
je 0x10014930
cmp dword [ebp - 0x3c], ebx
je 0x10014878
cmp dword [ebp - 0x50], ebx
je 0x10014878
cmp esi, dword [ebp - 0x50]
jae 0x10014878
lea ecx, [ebp - 0x5c]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x1001c068]
test eax, eax
je 0x10014930
xor ecx, ecx
mov eax, dword [ebp - 0x5c]
mov cx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
mov edx, dword [ebp - 0x30]
push edx
call edi
test eax, eax
je 0x10014930
inc esi
mov dword [ebp - 0x24], esi
jmp 0x10014839
push ebx
mov eax, dword [ebp - 0x30]
push eax
push 1
lea ecx, [ebp - 0x7c]
push ecx
call dword [0x1001c078]
test eax, eax
je 0x10014930
xor esi, esi
mov dword [ebp - 0x84], esi
xor edi, edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x88], bx
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [0x1001c070]
test eax, eax
je 0x10014930
mov eax, dword [ebp - 0x88]
test ah, 4
je 0x100148e4
mov esi, 0x500
mov dword [ebp - 0x84], esi
mov edi, esi
jmp 0x100148f6
test ah, 0x10
je 0x100148fc
mov esi, 0x1000
mov dword [ebp - 0x84], esi
mov edi, esi
mov dword [ebp - 0x90], edi
cmp si, bx
je 0x10014911
push edi
push esi
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x10014930
lea eax, [ebp - 0x7c]
push eax
mov eax, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x1001c0f4]
test eax, eax
je 0x10014930
mov dword [ebp - 0x34], 1
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.10014954
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret