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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
mov dword [ebp - 8], 0x101cc21f
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.10003a6f
add esp, 8
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.10003b4f
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0
push 4
push 0x1000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x40]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.1000391f
add esp, 8
lea ecx, [ebp - 0x38]
push ecx
push 0
call fcn.10003a6f
add esp, 8
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x10003cc5
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
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 0x10003c98
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x10003cee
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
jmp 0x10003cd5
mov eax, dword [ebp - 0x24]
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 0x10003d1b
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 0x10003cf4
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x28]
movsx eax, byte [edx]
test eax, eax
je 0x10003d57
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x28]
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 - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x10003d22
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x10003d81
push 0
call dword [ebp - 0x20]
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000391f
add esp, 8
mov dword [ebp - 0x58], 0
push 0
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10003de4
push 0
call dword [ebp - 0x20]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
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 - 0x6c], 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 - 0x70], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x40], 0
jmp 0x10003e3c
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x6c]
jae 0x10003e53
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
add edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
jmp 0x10003e2a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.10003b4f
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x10003e80
push 0
call dword [ebp - 0x20]
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.10003b4f
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x10003ead
push 0
call dword [ebp - 0x20]
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 1
push edx
call dword [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10003ed1
push 0
call dword [ebp - 0x20]
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 4]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x2c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x48], 0
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.1000395f
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [ebp - 0x4c]
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x78]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x34]
mov edx, dword [ebp - 0x18]
movsx eax, byte [ecx + edx]
test eax, eax
je 0x10003fa9
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0x18]
movsx cx, byte [edx + eax]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x10003f75
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x50]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x88], 1
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
lea edx, [ebp - 0x90]
push edx
call dword [ebp - 0x84]
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret