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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [0x101cf80f]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.10003326
mov dword [ebp - 0x3c], eax
mov eax, dword [0x101cf82f]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.10003394
mov dword [esp], 0
mov esi, eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.10003326
mov eax, dword [0x101cf84f]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov eax, dword [0x101cf84f]
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.1000329a
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dx, word [ecx + eax*2]
test dx, dx
je 0x100034a3
mov word [ebx + eax*2], dx
inc eax
jmp 0x10003493
mov ecx, dword [0x101cf843]
xor eax, eax
cmp word [ebx + eax*2], 0
je 0x100034b5
inc eax
jmp 0x100034ab
cmp word [ebx + eax*2 - 2], 0x5c
je 0x100034c6
mov word [ebx + eax*2], 0
dec eax
jmp 0x100034b5
sub ecx, eax
movsx dx, byte [ecx + eax]
test dl, dl
je 0x100034d8
mov word [ebx + eax*2], dx
inc eax
jmp 0x100034c8
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
jne 0x10003525
mov dword [esp], 0
call esi
push ecx
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [0x101cf80b]
mov dword [ebp - 0x40], eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [0x101cf80b]
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.1000329a
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x2c]
mov dword [esp + 4], ebx
mov dword [ebp - 0x2c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x100035ad
mov dword [esp], 0
call esi
push eax
mov eax, dword [ebp - 0x2c]
add eax, ebx
mov dword [ebp - 0x40], eax
mov eax, dword [0x101cf7ff]
add ebx, eax
xor eax, eax
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
cmp eax, ecx
je 0x100035ce
add dword [ebx + eax*4 + 8], edx
inc eax
jmp 0x100035c3
mov eax, dword [0x101cf7fb]
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.10003394
mov edi, eax
test eax, eax
jne 0x100035f7
mov dword [esp], 0
call esi
push eax
movsx eax, byte [ebx]
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.10003394
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x1000361f
mov dword [esp], 0
call esi
push ecx
movsx eax, byte [ebx]
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp], eax
call edi
push edx
test eax, eax
jne 0x10003641
mov dword [ebp - 0x44], eax
mov dword [esp], 0
call esi
push eax
mov eax, dword [ebp - 0x44]
movsx edx, byte [ebx]
mov dword [ebp - 0x28], 0
mov edi, dword [0x101cf837]
add ebx, edx
mov edx, dword [eax + 0x3c]
mov esi, dword [ebx + 8]
add edi, ebx
mov ecx, dword [ebx + 4]
add eax, dword [eax + edx + 0x2c]
lea edx, [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x44], ecx
lea ecx, [edi + esi]
mov dword [ebp - 0x48], ecx
mov ebx, eax
mov eax, dword [0x101cf807]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call fcn.100032b3
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
call eax
add ebx, dword [ebp - 0x44]
xor edx, edx
mov ecx, dword [ebp - 0x48]
sub esp, 0x10
mov eax, dword [0x101cf817]
lea esi, [edx + edx]
add esi, dword [ebp - 0x40]
cmp byte [eax + edx], 0
je 0x100036e6
mov eax, dword [0x101cf817]
mov edi, dword [ebp - 0x40]
movsx ax, byte [eax + edx]
mov word [edi + edx*2], ax
inc edx
jmp 0x100036c1
mov eax, dword [ebp - 0x40]
mov word [esi], 0
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret