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

Disassembly:
sub esp, 0x50
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
xor ebx, ebx
cmp byte [esi], 1
push edi
mov byte [esp + 0xe], bl
jne 0x10003adb
lea eax, [ebx + 1]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.100d0738
add esp, 0x50
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call edi
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x10003cca
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x1c], ebx
jl 0x10003cca
jg 0x10003b2f
cmp dword [esp + 0x18], 0x7d014
jb 0x10003cca
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ebp
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10003cbf
lea edx, [esp + 0x20]
push edx
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
jne 0x10003cb8
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x24]
jne 0x10003cb8
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push ebx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov word [esp + 0x45], ax
mov byte [esp + 0x47], al
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
push 0x14
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x54], bl
call edi
test eax, eax
je 0x10003cb8
push ebx
lea edx, [esp + 0x14]
push edx
push 0x14
lea eax, [esp + 0x4c]
push eax
push ebp
call edi
test eax, eax
je 0x10003cb8
mov eax, 0x14
xor ecx, ecx
mov edi, edi
mov edx, dword [esp + ecx + 0x2c]
cmp edx, dword [esp + ecx + 0x40]
jne 0x10003cb8
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x10003c00
mov byte [esp + 0xd], bl
mov byte [esp + 0xf], bl
cmp dword [esi + 4], ebx
jne 0x10003c36
push 0x7d000
call fcn.100cf8cb
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
lea esp, [esp]
mov edx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x19]
push ecx
push edx
call edi
test eax, eax
je 0x10003c8f
push ebx
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x1b]
push ecx
push ebp
call edi
test eax, eax
je 0x10003c8f
cmp dword [esp + 0x10], ebx
je 0x10003c8f
mov dl, byte [esp + 0xf]
xor dl, byte [esp + 0xd]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov byte [eax + ecx], dl
inc dword [esi + 8]
cmp dword [esi + 8], 0x7d000
jl 0x10003c40
cmp dword [esi + 8], 0x7d000
jne 0x10003ca2
mov byte [esi], 1
mov byte [esp + 0xe], 1
jmp 0x10003cb8
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x10003cb8
push eax
call fcn.100d1ecb
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
movzx eax, byte [esp + 0xe]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x50
ret 8