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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
lea eax, [esi + 0x24]
push eax
call fcn.00428660
pop ecx
pop ecx
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 8], ebx
je 0x41b450
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 8
mov dword [ebp - 0x18], eax
jae 0x41b456
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
jmp 0x41b611
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
push eax
push ebx
call edi
cmp dword [ebp - 4], 0x1010202
je 0x41b47a
push ebx
jmp 0x41b608
mov ecx, esi
mov dword [ebp + 8], 8
call fcn.0041b3bd
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea ebx, [esi + 0x1c]
push ebx
push dword [ebp - 8]
call edi
mov eax, dword [ebx]
test eax, eax
je 0x41b605
imul eax, eax, 0x214
push eax
call fcn.0043be5a
mov dword [esi + 0x20], eax
xor eax, eax
cmp dword [ebx], eax
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
jbe 0x41b600
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 8]
cmp eax, 0x10
jb 0x41b5f1
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x20]
imul eax, eax, 0x214
mov edx, dword [ebp - 0x24]
mov dword [eax + ecx + 0x204], edx
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x20]
imul eax, eax, 0x214
mov edx, dword [ebp - 0x20]
mov dword [eax + ecx + 0x208], edx
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x20]
imul eax, eax, 0x214
mov edx, dword [ebp - 0x1c]
add dword [ebp + 8], 0x10
mov dword [eax + ecx + 0x20c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x20]
imul eax, eax, 0x214
mov dx, word [ebp - 0x28]
mov word [eax + ecx], dx
movzx eax, byte [ebp - 0x26]
movzx ecx, byte [ebp - 0x25]
add ecx, eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 8]
cmp eax, ecx
jb 0x41b5e0
mov ecx, dword [esi + 0x20]
push 0
lea eax, [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0x26]
push eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x214
lea eax, [eax + ecx + 0x102]
push eax
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 0x26]
imul eax, eax, 0x214
add eax, ecx
mov ecx, dword [esi + 0x20]
mov byte [eax + ecx + 0x102], 0
mov ecx, dword [esi + 0x20]
push 0
lea eax, [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0x25]
push eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x214
lea eax, [eax + ecx + 2]
push eax
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 0x25]
imul eax, eax, 0x214
add eax, ecx
mov ecx, dword [esi + 0x20]
mov byte [eax + ecx + 2], 0
movzx ecx, byte [ebp - 0x26]
movzx eax, byte [ebp - 0x25]
add ecx, dword [ebp + 8]
add ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ecx
jmp 0x41b5e3
push 0xfffffffffffffffe
pop eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0xc]
jae 0x41b5f4
dec eax
inc dword [ebp - 0x10]
jmp 0x41b5f4
push 0xfffffffffffffffe
pop eax
inc eax
cmp eax, dword [ebx]
mov dword [ebp - 4], eax
jb 0x41b4c3
mov eax, dword [ebp - 0x10]
sub dword [ebx], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8