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

Disassembly:
sub esp, 0x90
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10037f2c
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0x200000
jbe 0x10037f33
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10038182
push 0x100da440
push ebp
call fcn.10079cfe
mov edi, eax
add esp, 8
mov dword [esp + 0x20], edi
cmp edi, ebx
je 0x10037f25
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebp
push edi
push esi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x10037f79
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.10079d09
add esp, 4
xor eax, eax
jmp 0x10038182
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3f
lea edx, [esp + 0x35]
push ebx
push edx
mov dword [esp + 0x20], 1
mov byte [esp + 0x3c], bl
call fcn.1007dcf0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov word [esp + 0x99], ax
mov byte [esp + 0x9b], al
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov word [esp + 0x89], ax
mov byte [esp + 0x8b], al
mov esi, edi
mov byte [esp + 0x8c], bl
mov byte [esp + 0x7c], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov ecx, 0x12
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x40]
push ecx
xor ebp, ebp
call fcn.100378d0
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, 0x200000
jbe 0x10038051
mov dword [esp + 0x14], ebx
mov dword [0x100dee5c], 0xfffffffe
jmp 0x10038171
push 0x100da440
push eax
call fcn.10079cfe
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
cmp esi, ebx
jne 0x1003807c
mov dword [esp + 0x14], ebx
mov dword [0x100dee5c], 0xfffffffc
jmp 0x10038157
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push edx
add eax, 0x48
push eax
push esi
call fcn.10081350
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x7c]
push ecx
push edx
mov ecx, esi
call fcn.10037dd0
add esp, 8
test eax, eax
jne 0x100380bd
mov dword [esp + 0x14], ebx
mov dword [0x100dee5c], 0xfffffffe
jmp 0x10038157
mov esi, dword [esp + 0x10]
add esi, 4
push 0x100da440
push esi
call fcn.10079cfe
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x100380e8
mov dword [esp + 0x14], ebx
mov dword [0x100dee5c], 0xfffffffd
jmp 0x10038146
push esi
push ebx
push edi
call fcn.1007dcf0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ebx
push eax
push ecx
mov edx, edi
lea ecx, [esp + 0x98]
call fcn.100025e0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x24], ebx
call fcn.10037830
mov ebp, eax
mov esi, ebp
call fcn.10037890
mov esi, dword [esp + 0x24]
add esi, esi
push ebp
mov eax, esi
call fcn.100381a0
add esp, 0xc
cmp esi, ebx
je 0x10038146
push esi
push ebp
call fcn.100382d0
add esp, 8
cmp edi, ebx
je 0x10038153
push edi
call fcn.10079d09
add esp, 4
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x10038164
push esi
call fcn.10079d09
add esp, 4
cmp ebp, ebx
je 0x10038171
push ebp
call fcn.10079d09
add esp, 4
mov eax, dword [esp + 0x20]
push eax
call fcn.10079d09
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10079a05
add esp, 0x90
ret