Function at 0x10340e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
push 0x34
lea eax, [ebp - 0x60]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x64], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 6
xor eax, eax
mov dword [ebp - 0x2c], ebx
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
cmp eax, dword [esi + 0x10]
jb 0x103412f
mov dword [ebp - 4], 0x80070057
jmp 0x1034321
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push dword [eax + 0x2a]
push dword [esi + 4]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 0x1e
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1034189
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x103417d
jg 0x1034171
mov dword [ebp - 4], eax
jmp 0x1034321
and eax, 0xffff
or eax, 0x80070000
jmp 0x1034169
mov dword [ebp - 4], 0x80004005
jmp 0x1034321
cmp dword [ebp - 0x2c], 0x4034b50
je 0x103419e
mov dword [ebp - 4], 0x80070570
jmp 0x1034321
cmp word [ebp - 0x24], 8
je 0x10341ab
cmp word [ebp - 0x24], bx
jne 0x1034192
cmp dword [ebp - 0x16], ebx
ja 0x10341bc
mov dword [ebp - 4], 0x80070002
jmp 0x1034321
movzx eax, word [ebp - 0x10]
movzx ecx, word [ebp - 0x12]
push 1
push ebx
add eax, ecx
push eax
push dword [esi + 4]
call edi
push dword [ebp - 0x16]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x10342ce
cmp word [ebp - 0x24], bx
jne 0x1034227
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x16]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1034258
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x16]
jmp 0x10342d9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x10342f7
push dword [ebp - 0x1a]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x10342ce
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1a]
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1034272
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x1034266
jle 0x103421f
jmp 0x1034215
mov dword [ebp - 4], 0x80004005
jmp 0x10342f7
mov eax, dword [ebp - 0x1a]
cmp dword [ebp - 8], eax
jne 0x10342db
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x16]
push 0x103432c
mov dword [ebp - 0x54], eax
push 0xfffffffffffffff1
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], edi
call fcn.01038b69
mov esi, eax
cmp esi, ebx
jne 0x10342c9
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.01038c4d
mov esi, eax
lea eax, [ebp - 0x64]
push eax
call fcn.01038b23
cmp esi, 1
jne 0x10342c0
xor esi, esi
lea eax, [ebp - 0x64]
push eax
call fcn.01038b23
cmp esi, 0xfffffffc
jne 0x10342d7
mov dword [ebp - 4], 0x8007000e
jmp 0x10342f7
cmp esi, ebx
je 0x10342e4
mov dword [ebp - 4], 0x80070570
jmp 0x10342f7
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x16]
mov dword [ebp + 8], ebx
mov dword [eax], ecx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 8], ebx
je 0x103430f
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
cmp dword [ebp - 0xc], ebx
je 0x1034321
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc