Function at 0x1000138b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
mov dword [ebp - 8], 0x1015a5f4
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.100011cb
add esp, 8
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x34]
push edx
push 0
call fcn.100011cb
add esp, 8
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x40]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000107b
add esp, 8
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x10001424
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cx, word [esi + ecx*2]
mov word [eax + edx*2], cx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x100013f7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x1000144d
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
jmp 0x10001434
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + ecx*2 - 2]
cmp eax, 0x5c
je 0x1000147a
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x10001453
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x24]
movsx eax, byte [edx]
test eax, eax
je 0x100014b6
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x24]
movsx dx, byte [ecx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x10001481
push 0
push 0x80
push 3
push 0
push 1
push 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x100014dd
jmp 0x10001742
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000107b
add esp, 8
mov dword [ebp - 0x50], 0
push 0
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10001546
jmp 0x10001742
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2c]
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], 0
jmp 0x1000159e