Function at 0x100037b0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x100342d8]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x8c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x68]
call fcn.1000c2f0
xor eax, eax
mov byte [ebp - 0xb1], al
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xb1]
call fcn.10003b90
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0xffffffff
jne 0x10003864
jmp 0x10003b2f
lea ecx, [ebp - 0x68]
call fcn.100242b0
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x74]
xor edx, edx
mov cl, 0x20
call fcn.10028e50
mov ecx, dword [ebp - 0x90]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x74], 0
ja 0x100038d4
mov edx, dword [ebp - 0x90]
xor eax, eax
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 1
jb 0x10003a44
ja 0x100038d4
cmp dword [ebp - 0xc4], 0
jbe 0x10003a44
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100038fb
jmp 0x10003b2f
mov edx, dword [ebp - 0x84]
cmp edx, dword [ebp - 0x6c]
jg 0x10003a38
jl 0x1000391b
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x70]
jae 0x10003a38
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x84]
mov cl, 0x20
call fcn.10028e20
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
xor edx, edx
mov cl, 0x20
call fcn.10028e50
mov ecx, dword [ebp - 0x88]
sub ecx, eax
mov eax, dword [ebp - 0x84]
sbb eax, edx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa0], 0
mov ecx, dword [ebp - 0x88]
add ecx, 0x80000
mov edx, dword [ebp - 0x84]
adc edx, 0
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp - 0x6c]
jg 0x100039a8
jl 0x1000399c
mov ecx, dword [ebp - 0xcc]
cmp ecx, dword [ebp - 0x70]
ja 0x100039a8
mov dword [ebp - 0xa0], 0x80000
jmp 0x100039c0
mov edx, dword [ebp - 0x70]
sub edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x6c]
sbb eax, dword [ebp - 0x84]
mov dword [ebp - 0xa0], edx
mov ecx, dword [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0x98]
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x100039f4
jmp 0x10003b2f
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x68]
call fcn.10024c50
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0xa0]
xor eax, eax
add edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x84]
adc ecx, eax
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], ecx
jmp 0x100038fb
mov dword [ebp - 0x7c], 0
jmp 0x10003b19
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa4], 0
push 0x10035a80
push 0x8000
call fcn.1000de4c
add esp, 8
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x7c], 0
jne 0x10003a93
jmp 0x10003b2f
push 0
lea eax, [ebp - 0xa4]
push eax
push 0x8000
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003aff
cmp dword [ebp - 0xa4], 0
jne 0x10003abe
jmp 0x10003aff
mov eax, dword [ebp - 0xa4]
xor ecx, ecx
add eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
adc edx, ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x68]
call fcn.10024c50
mov dword [ebp - 0xa4], 0
jmp 0x10003a93
mov edx, dword [ebp - 0xb0]
cmp edx, dword [ebp - 0x70]
jne 0x10003b15
mov eax, dword [ebp - 0xac]
cmp eax, dword [ebp - 0x6c]
je 0x10003b19
jmp 0x10003b2f
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x68]
call fcn.10024d50
mov dword [ebp - 0x8c], 1
cmp dword [ebp - 0x7c], 0
je 0x10003b54
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
push eax
call fcn.1000dea5
add esp, 4
mov dword [ebp - 0x7c], 0
cmp dword [ebp - 8], 0
je 0x10003b64
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x78], 0xffffffff
je 0x10003b74
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x8c]
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1000de96
mov esp, ebp
pop ebp
ret