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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c0bb
mov eax, dword fs:[0]
push eax
sub esp, 0x938
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x93c], ebx
cmp dword [eax - 0xc], 0
mov dword [ebp - 0x930], 0
je 0x411d6e
push 0x490f70
push eax
call fcn.0046236e
add esp, 8
test eax, eax
sete al
test al, al
jne 0x411d6e
lea eax, [ebp - 0x92c]
push eax
call fcn.00420c30
mov ecx, dword [eax]
xor eax, eax
add esp, 4
test ecx, ecx
setne al
mov dword [ebp - 0x930], 1
test eax, eax
jne 0x411d53
push 0x80004005
call fcn.00403930
push ecx
push dword [esi]
call fcn.0046236e
add esp, 8
test eax, eax
sete al
mov byte [ebp - 0x921], 0
test al, al
je 0x411d75
mov byte [ebp - 0x921], 1
test byte [ebp - 0x930], 1
je 0x411d9e
mov edx, dword [ebp - 0x92c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411d9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x921], 0
je 0x411ddb
mov esi, dword [0x4af2c0]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 0xf
jne 0x411dcd
dec esi
mov dword [0x4af2c0], esi
push ebx
call fcn.00420c30
add esp, 4
jmp 0x411f98
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x940], edi
cmp edi, 0xffffffff
je 0x411dcd
lea eax, [ebp - 0x938]
push eax
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x938], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x411e31
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00420c30
add esp, 4
jmp 0x411f98
cmp dword [ebp - 0x934], 0
jne 0x411e1c
cmp dword [ebp - 0x938], 0
jne 0x411f05
mov ecx, dword [0x4af2c0]
mov esi, 0x17
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
cmp edx, 9
jne 0x411eed
xor ebx, ebx
lea eax, [ebp - 0x920]
lea esp, [esp]
xor edx, edx
mov dword [ebp - 0x92c], edx
mov dword [ebp - 0x928], eax
mov edi, edi
lea edi, [edx + 1]
mov eax, ecx
cdq
lea esi, [ebx + 1]
idiv esi
mov eax, ecx
sub eax, ebx
mov esi, edx
imul esi, eax
mov eax, ecx
cdq
idiv edi
add esi, eax
sub esi, dword [ebp - 0x92c]
push esi
push 0x490f88
call fcn.004628cc
mov eax, dword [ebp - 0x928]
mov edx, edi
add eax, 4
add esp, 8
mov dword [ebp - 0x92c], edi
mov dword [ebp - 0x928], eax
cmp edx, 0x14
jge 0x411ed3
mov ecx, dword [0x4af2c0]
jmp 0x411e80
inc ebx
cmp ebx, 0x1d
jge 0x411ee1
mov ecx, dword [0x4af2c0]
jmp 0x411e70
mov ebx, dword [ebp - 0x93c]
mov edi, dword [ebp - 0x940]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x490f70
mov ecx, ebx
call fcn.00401b30
jmp 0x411f98
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x928], eax
push 0
lea eax, [ebp - 0x944]
push eax
mov eax, dword [ebp - 0x938]
push eax
push eax
lea ecx, [ebp - 0x928]
mov dword [ebp - 4], 0
mov dword [ebp - 0x944], 0
call fcn.004045a0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x938]
lea ecx, [ebp - 0x928]
mov esi, eax
call fcn.004124b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x411f76
push ebx
call fcn.00420c30
jmp 0x411f8a
mov eax, dword [ebp - 0x928]
add eax, 0xfffffff0
push eax
call fcn.00403ee0
add eax, 0x10
mov dword [ebx], eax
add esp, 4
lea ecx, [ebp - 0x928]
call fcn.00402850
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret