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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4618f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
jne 0x411ee8
lea eax, [ebp - 0x24]
push 0x468728
push eax
mov dword [ebp - 0x24], ebx
call fcn.00456088
mov edi, dword [ebp + 0xc]
mov esi, 0x104
mov edx, edi
add eax, 0x18
cmp esi, ebx
je 0x411f11
mov cx, word [edx]
cmp cx, bx
je 0x411f0d
mov word [eax], cx
add eax, 2
add edx, 2
dec esi
jmp 0x411ef5
cmp esi, ebx
jne 0x411f14
sub eax, 2
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push edi
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], esi
jne 0x411f45
lea ecx, [ebp - 0x28]
push 0x468728
push ecx
mov dword [ebp - 0x28], ebx
call fcn.00456088
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00455403
add esp, 4
lea edx, [ebp - 0x40]
mov ebx, eax
push 0
push edx
push edi
push ebx
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
jne 0x411f90
lea eax, [ebp - 0x2c]
push 0x468728
push eax
mov dword [ebp - 0x2c], esi
call fcn.00456088
lea ecx, [ebp - 0x34]
push ecx
push edi
push ebx
call fcn.00412780
mov edi, eax
add esp, 0xc
cmp edi, esi
mov dword [ebp - 0x3c], edi
jne 0x411fb8
lea edx, [ebp - 0x30]
push 0x468728
push edx
mov dword [ebp - 0x30], esi
call fcn.00456088
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x34]
jae 0x4121e4
mov ecx, dword [ebp + 8]
mov esi, eax
shl esi, 5
mov edx, dword [ecx + 0x22c]
lea ebx, [ecx + 0x220]
add esi, eax
mov eax, 0x3e0f83e1
mov ecx, dword [ebx + 8]
sub edx, ecx
imul edx
sar edx, 7
mov eax, edx
shl esi, 4
shr eax, 0x1f
add esi, edi
add edx, eax
mov edi, ecx
cmp edx, 1
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x1c], edi
jae 0x4120fe
mov eax, dword [ebx + 4]
test eax, eax
je 0x412036
mov edx, ecx
sub edx, eax
mov eax, 0x3e0f83e1
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov dword [ebp + 0xc], edx
ja 0x41203d
mov dword [ebp + 0xc], 1
mov eax, dword [ebx + 4]
test eax, eax
jne 0x412048
xor edx, edx
jmp 0x41205b
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, dword [ebp + 0xc]
add eax, edx
test eax, eax
mov dword [ebp - 0x1c], eax
jge 0x412069
xor eax, eax
mov ecx, eax
shl ecx, 5
add ecx, eax
shl ecx, 4
push ecx
call fcn.00455403
mov edx, dword [ebx + 4]
add esp, 4
mov ecx, ebx
mov dword [ebp - 0x38], eax
push eax
push edi
push edx
call fcn.00412860
push esi
push 1
push eax
mov ecx, ebx
mov dword [ebp + 0xc], eax
call fcn.004128a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 8]
add eax, 0x210
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00412860
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
push edx
push eax
mov ecx, ebx
call fcn.004115c0
mov eax, dword [ebx + 4]
push eax
call fcn.004535f0
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov ecx, eax
add esp, 4
shl ecx, 5
add ecx, eax
shl ecx, 4
add ecx, esi
mov dword [ebx + 0xc], ecx
mov ecx, ebx
call fcn.00412830
inc eax
mov dword [ebx + 4], esi
mov edx, eax
shl edx, 5
add edx, eax
shl edx, 4
add edx, esi
mov dword [ebx + 8], edx
jmp 0x4121d2
mov edx, ecx
mov eax, 0x3e0f83e1
sub edx, edi
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x41216e
lea edx, [edi + 0x210]
push edx
push ecx
push edi
mov ecx, ebx
call fcn.00412860
mov ecx, dword [ebx + 8]
mov eax, 0x3e0f83e1
sub ecx, edi
push esi
imul ecx
sar edx, 7
mov eax, edx
mov ecx, 1
shr eax, 0x1f
add edx, eax
mov eax, dword [ebx + 8]
sub ecx, edx
push ecx
push eax
mov ecx, ebx
call fcn.004128a0
mov edx, dword [ebx + 8]
mov eax, edi
cmp eax, edx
je 0x4121cb
mov ecx, 0x84
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
add eax, 0x210
jmp 0x412157
push ecx
push ecx
add ecx, 0xfffffdf0
push ecx
mov ecx, ebx
call fcn.00412860
mov edx, dword [ebx + 8]
lea eax, [edx - 0x210]
cmp edi, eax
je 0x4121a9
sub eax, 0x210
sub edx, 0x210
mov ecx, 0x84
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
jmp 0x412187
mov eax, edi
add edi, 0x210
cmp eax, edi
je 0x4121cb
mov ecx, 0x84
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
add eax, 0x210
jmp 0x4121ab
add dword [ebx + 8], 0x210
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x411fc7
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x4121fb
push ebx
call fcn.004535f0
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret