Function at 0x41ad50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484201
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x10144
call fcn.00463720
mov eax, dword [0x4a57cc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1014c], ecx
mov eax, dword [ebp - 0x1014c]
add eax, 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041e3d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041e420
movzx ecx, al
test ecx, ecx
je 0x41addc
mov edx, dword [ebp - 0x1014c]
mov dword [edx + 0x41c], 1
mov ecx, dword [ebp + 0xc]
call fcn.004202c0
mov ecx, dword [ebp - 0x1014c]
mov dword [ecx + 0x520], eax
mov edx, dword [ebp - 0x1014c]
mov dword [edx + 0x524], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041e400
mov ecx, dword [ebp + 0xc]
call fcn.00420d30
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
call fcn.0042fc40
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
jmp 0x41ae15
mov ecx, dword [ebp - 0x18]
add ecx, 0x638
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
je 0x41b186
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x1014c]
cmp dword [eax + 0x534], 0
jne 0x41ae41
xor eax, eax
jmp 0x41b18b
mov ecx, dword [ebp - 0x1014c]
add ecx, 4
push ecx
lea ecx, [ebp - 0x10140]
call fcn.0041e3d0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10140]
call fcn.0041e420
movzx edx, al
test edx, edx
je 0x41aea8
push 0x100
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1014c]
add ecx, 0x420
push ecx
call fcn.004031d0
add esp, 0xc
mov edx, dword [ebp - 0x1014c]
mov eax, dword [edx + 0x524]
add eax, 1
mov ecx, dword [ebp - 0x1014c]
mov dword [ecx + 0x524], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10140]
call fcn.0041e400
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x48b7b4
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00463edd
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x41af37
cmp dword [ebp + 0x14], 0
je 0x41af19
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x630], 3
jmp 0x41af26
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x630], 2
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00420360
jmp 0x41ae09
push 2
push 0
push 0
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x130], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x130]
cmp eax, dword [edx + 0x204]
jne 0x41afd6
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x630], 1
je 0x41afd6
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x218], 0
jne 0x41af98
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x214], 0
je 0x41afd6
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [ebp - 0x18]
add eax, 0x214
push eax
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jne 0x41afd6
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ae09
cmp dword [ebp - 0x130], 0
jbe 0x41b0d9
cmp dword [ebp - 0x130], 0x10000
jae 0x41affd
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x10150], eax
jmp 0x41b007
mov dword [ebp - 0x10150], 0x10000
mov ecx, dword [ebp - 0x10150]
mov dword [ebp - 0x10148], ecx
mov edx, dword [ebp - 0x1014c]
cmp dword [edx + 0x534], 0
jne 0x41b036
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41b18b
push 0
lea ecx, [ebp - 0x10144]
push ecx
mov edx, dword [ebp - 0x10148]
push edx
lea eax, [ebp - 0x1013c]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b06c
mov edx, dword [ebp - 0x10144]
cmp edx, dword [ebp - 0x10148]
je 0x41b09f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x18]
push eax
push str.File_Read_Error_while_calculating_CRC_file___s__error_code___d
mov ecx, dword [ebp - 0x1014c]
push ecx
call fcn.0041e290
add esp, 0x10
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41b18b
mov eax, dword [ebp - 0x10144]
push eax
lea ecx, [ebp - 0x1013c]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call fcn.00438280
add esp, 0xc
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x130]
sub eax, dword [ebp - 0x10144]
mov dword [ebp - 0x130], eax
jmp 0x41afd6
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x138]
cmp eax, dword [edx + 0x200]
je 0x41b181
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x41c], 0
je 0x41b127
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x41c]
cmp eax, dword [ebp - 0x138]
jne 0x41b127
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x630], 4
jmp 0x41b175
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x624], 0
je 0x41b153
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x624]
cmp ecx, dword [ebp - 0x138]
jne 0x41b153
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x630], 5
jmp 0x41b175
cmp dword [ebp + 0x14], 0
je 0x41b168
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x630], 3
jmp 0x41b175
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x630], 2
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00420360
jmp 0x41ae09
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x28]
call fcn.004635af
mov esp, ebp
pop ebp
ret 0x10