Function at 0x41af80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x2c]
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax], 0
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x41afc0
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
jl 0x41b239
cmp ebp, dword [eax + 8]
jge 0x41b239
mov eax, ebp
lea edi, [esi + 0x138]
cdq
idiv dword [edi + 4]
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [edi]
mov eax, dword [edx + eax*4]
test eax, eax
je 0x41affc
cmp ebp, dword [eax]
je 0x41b01f
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x41aff1
push 0
push ebp
mov ecx, esi
call fcn.0041b9d0
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x41b047
mov eax, 0xfffffffb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov edx, dword [eax + 4]
add edx, 0x20
mov dword [ecx], edx
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
inc word [eax + 0x10]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [esi + 0x12c]
mov ecx, dword [esi + 0x128]
cmp eax, ecx
jle 0x41b189
jmp 0x41b05f
xor ebx, ebx
cmp dword [esi + 0x164], ebx
je 0x41b189
mov edx, dword [esi + 0x168]
mov eax, dword [esi + 0x16c]
cmp eax, edx
jne 0x41b081
mov dword [esi + 0x16c], ebx
mov eax, dword [esi + 0x164]
dec eax
mov dword [esi + 0x164], eax
mov eax, dword [esi + 0x170]
lea ecx, [eax + 1]
cmp ecx, edx
mov dword [esi + 0x170], ecx
jne 0x41b0a7
mov dword [esi + 0x170], ebx
mov ecx, dword [esi + 0x160]
mov ebx, dword [ecx + eax*4]
mov eax, ebx
cdq
idiv dword [edi + 4]
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [edi]
mov eax, dword [edx + eax*4]
test eax, eax
je 0x41b173
cmp ebx, dword [eax]
je 0x41b0da
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x41b0ca
jmp 0x41b173
cmp word [eax + 0x10], 0
jne 0x41b173
mov ecx, dword [eax + 8]
mov edx, dword [esi + 0x12c]
sub edx, ecx
mov dword [esi + 0x12c], edx
mov edx, dword [eax + 4]
push edx
call fcn.0041e706
mov eax, ebx
mov ecx, dword [edi]
cdq
idiv dword [edi + 4]
add esp, 4
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x41b173
or edx, 0xffffffff
lea ebp, [edi + 0x18]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
xor edx, edx
mov dword [ebp], edx
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
mov edx, dword [ecx]
cmp edx, ebx
jne 0x41b143
mov edx, dword [edi]
mov ebx, dword [ecx + 0x14]
push ecx
mov dword [edx + eax*4], ebx
jmp 0x41b160
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x41b16f
cmp dword [eax], ebx
je 0x41b159
mov ecx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x41b14a
jmp 0x41b16f
mov edx, dword [eax + 0x14]
push eax
mov dword [ecx + 0x14], edx
call fcn.0041e706
mov eax, dword [edi + 8]
add esp, 4
dec eax
mov dword [edi + 8], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esi + 0x12c]
mov ecx, dword [esi + 0x128]
cmp eax, ecx
jg 0x41b05d
xor ebx, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ebx
mov edx, dword [ecx + 8]
add edx, 0x20
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esi + 0x10c]
mov ebx, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [eax]
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push 0
push eax
mov edx, dword [ecx + 8]
mov eax, dword [esi + 0x10c]
add edx, 0x20
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b239
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x12c]
sub esp, 0x10
mov word [esp + 0x30], 0
mov eax, dword [ecx + 8]
mov ecx, dword [ecx]
add edx, eax
mov dword [esi + 0x12c], edx
mov edx, esp
push ebp
mov dword [edx], ebx
mov dword [edx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [edx + 8], ecx
mov ecx, edi
mov dword [edx + 0xc], eax
call fcn.0041bfc0
mov eax, ebp
mov ecx, dword [edi]
cdq
idiv dword [edi + 4]
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x41b239
cmp ebp, dword [edi]
je 0x41b246
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x41b22e
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x2c]
add edx, 0x20
mov dword [eax], edx
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x30]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [edi + 8]
mov eax, 1
mov dword [edx], ecx
mov word [edi + 0x10], ax
test byte [esi + 0x120], al
jne 0x41b294
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [edi + 4]
lea edx, [esp + 0x14]
add ecx, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10