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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
xor edi, edi
push edi
mov ebx, ecx
call fcn.10002872
push edi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
push edi
push edi
push dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
sub dword [ebp - 0x10], esi
mov eax, 0x19000
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
jae 0x100074ea
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x28], eax
call fcn.1001b998
cmp eax, edi
pop ecx
mov dword [ebp - 0x1c], eax
je 0x100076d6
mov eax, dword [ebp - 0x10]
push edi
push 0x1e
pop ecx
xor edx, edx
div ecx
mov ecx, ebx
push eax
call fcn.10002659
push edi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x28]
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], edi
push dword [ebx + 0xc]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 1], 0
mov dword [ebx + 0x28], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100076a3
jmp 0x1000754c
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, esi
sbb esi, esi
neg esi
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
je 0x100076a3
jmp 0x1000756c
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
sub edi, ecx
cmp edi, 4
mov dword [ebp - 0x38], edi
jae 0x10007584
test esi, esi
je 0x10007667
test edi, edi
jbe 0x10007604
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 0x1c]
push edi
mov edi, dword [ebp - 0xc]
add edi, edx
push edi
call dword [eax + 8]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jg 0x100075b4
inc dword [ebp - 0xc]
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
jmp 0x1000756c
mov edi, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
xor esi, esi
add edi, eax
inc esi
cmp ecx, esi
mov dword [ebp - 0x14], edi
jne 0x100075e7
mov al, byte [ebp - 8]
cmp al, 0xd
je 0x100075d1
cmp al, 0xa
jne 0x100075e7
cmp byte [ebp - 1], 0
je 0x100075e2
cmp byte [ebp - 1], al
je 0x100075e2
mov byte [ebp - 1], 0
jmp 0x10007654
mov byte [ebp - 1], al
jmp 0x10007611
inc dword [ebp - 0x20]
add dword [ebp - 0x24], ecx
xor eax, eax
cmp dword [ebp - 0x20], 0x12c
mov byte [ebp - 1], 0
sete al
xor esi, esi
mov dword [ebp - 0x18], edi
jmp 0x10007609
xor eax, eax
inc eax
mov esi, eax
test eax, eax
je 0x10007569
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x40], eax
xor eax, eax
test esi, esi
sete al
mov dword [ebp - 0x4c], ecx
mov ecx, ebx
mov dword [ebp - 0x3c], eax
call fcn.10006b57
push 5
mov edi, eax
mov eax, dword [ebp - 0x40]
pop ecx
lea esi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x28], eax
jae 0x1000764b
mov dword [ebx + 0x28], eax
cmp dword [ebp - 0x38], 0
je 0x100076a1
mov edi, dword [ebp - 0x14]
and dword [ebp - 0x20], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x2c], edi
jmp 0x10007569
mov eax, dword [ebp - 0x1c]
push edi
add ecx, eax
push ecx
push eax
call fcn.1001bfd0
mov esi, dword [ebp - 0x28]
and dword [ebp - 0x10], 0
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
sub esi, edi
push esi
mov dword [ebp - 0xc], edi
add edi, eax
push edi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000754a
xor edi, edi
push dword [ebp - 0x1c]
call fcn.1001b588
add dword [ebx + 0x28], 4
pop ecx
mov ecx, dword [ebx + 0x28]
mov eax, 0x9c40
cmp ecx, eax
jae 0x100076bf
mov dword [ebx + 0x28], eax
push dword [ebx + 0x28]
call fcn.1001b998
cmp eax, edi
pop ecx
mov dword [ebx + 0x2c], eax
jne 0x100076d6
mov ecx, ebx
call fcn.1000746d
pop edi
pop esi
pop ebx
leave
ret