Function at 0x41cb90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4238
call fcn.0051a810
mov eax, dword [0x58f660]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x1fff
lea eax, [ebp - 0x421b]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x4234], edi
mov esi, edx
mov dword [ebp - 0x4224], ebx
mov byte [ebp - 0x421c], 0
call fcn.00518380
add esp, 0xc
push 0x1fff
lea ecx, [ebp - 0x221b]
push 0
push ecx
mov byte [ebp - 0x221c], 0
call fcn.00518380
mov ecx, dword [ebx + 0x58]
add esp, 0xc
mov byte [ebp - 0x421d], 0
test ecx, ecx
jns 0x41cc0c
mov eax, dword [edi + 0x1c]
add eax, ecx
jmp 0x41cc0e
mov eax, ecx
cdq
shld edx, eax, 9
push 0
mov dword [ebp - 0x4228], edx
lea edx, [ebp - 0x4228]
shl eax, 9
push edx
push eax
push esi
mov dword [ebp - 0x4230], 0
mov dword [ebp - 0x422c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x422c], eax
call ebx
mov ecx, dword [ebp - 0x422c]
cmp ecx, 0xffffffff
jne 0x41cc5a
test eax, eax
jne 0x41cc68
cmp ecx, 0xffffffff
jne 0x41cc68
cmp dword [ebp - 0x4228], 0
je 0x41cc98
push 0
lea eax, [ebp - 0x4230]
push eax
push 0x2000
lea ecx, [ebp - 0x421c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cc98
cmp dword [ebp - 0x4230], 0x2000
je 0x41cd24
call ebx
mov esi, eax
test esi, esi
je 0x41cd24
mov edx, dword [edi + 0x18]
cmp byte [edx + 0x54], 0
push esi
je 0x41ccb5
push 0x56ee4c
jmp 0x41ccba
push str.Failed_to_read_the_disk_data._The_error_code_is:_d___Location:11_
push 0x597f50
call fcn.00515b45
movzx eax, word [edi + 4]
mov ecx, dword [edi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
push 0x597f50
and eax, 0xff
shl eax, 0x10
push eax
push 0x178c
push ecx
call ebx
movzx edx, word [edi + 4]
mov eax, dword [edi + 8]
and edx, 0xff
push 0x597f50
shl edx, 0x10
or edx, 1
push edx
push 0x178c
push eax
call ebx
mov byte [edi + 0xd], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret 4
push 0x103
lea ecx, [ebp - 0x113]
push 0
push ecx
mov byte [ebp - 0x114], 0
call fcn.00518380
mov esi, dword [ebp - 0x4224]
lea eax, [esi + 0x38]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x41cd52
mov eax, dword [eax]
lea edx, [ebp - 0x114]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41cd60
cmp byte [edi + 0xe], cl
je 0x41cde1
push 0x103
lea edx, [ebp - 0x21b]
push 0
push edx
mov byte [ebp - 0x21c], cl
call fcn.00518380
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea ecx, [ebp - 0x114]
push 0
push ecx
call fcn.00518380
add esp, 0xc
xor eax, eax
jmp 0x41cdc0
mov cl, byte [ebp + eax - 0x21c]
mov byte [ebp + eax - 0x114], cl
inc eax
test cl, cl
jne 0x41cdc0
mov eax, dword [esi + 0x70]
cdq
mov ebx, eax
mov dword [ebp - 0x4228], edx
jmp 0x41cde9
xor ebx, ebx
mov dword [ebp - 0x4228], ebx
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41cebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [edi + 0x18]
cmp byte [eax + 0x54], 0
mov eax, dword [ebp - 0x4224]
je 0x41ce3b
add eax, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x41ce32
mov eax, dword [eax]
push ebx
push eax
push 0x56eec4
jmp 0x41ce4d
add eax, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x41ce46
mov eax, dword [eax]
push ebx
push eax
push str.Failed_to_open_file__s._The_error_code_is
push 0x597f50
call fcn.00515b45
movzx ecx, word [edi + 4]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x10
and ecx, 0xff
push 0x597f50
or ecx, 0x100
shl ecx, 0x10
push ecx
push 0x178c
push edx
call esi
movzx eax, word [edi + 4]
mov ecx, dword [edi + 8]
and eax, 0xff
push 0x597f50
shl eax, 0x10
or eax, 0x1000001
push eax
push 0x178c
push ecx
call esi
mov byte [edi + 0xd], 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x4228]
push edx
push ebx
lea eax, [ebp - 0x221c]
push eax
mov ebx, 0x2000
call fcn.0041f5c0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41cf6d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0x18]
cmp byte [ecx + 0x54], 0
push ebx
je 0x41cefd
push 0x56ef34
jmp 0x41cf02
push str.Failed_to_read_the_file_data._The_error_code_is:_d___Location:07_
push 0x597f50
call fcn.00515b45
movzx edx, word [edi + 4]
mov eax, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
push 0x597f50
and edx, 0xff
shl edx, 0x10
push edx
push 0x178c
push eax
call esi
movzx ecx, word [edi + 4]
mov edx, dword [edi + 8]
and ecx, 0xff
push 0x597f50
shl ecx, 0x10
or ecx, 1
push ecx
push 0x178c
push edx
call esi
mov byte [edi + 0xd], 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x4224]
mov ecx, str.PrimaryGPT
call fcn.00404300
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
cmp eax, 0x2000
jge 0x41d006
jmp 0x41cfa0
mov cl, byte [ebp + eax - 0x421c]
cmp cl, byte [ebp + eax - 0x221c]
jne 0x41cfc1
inc eax
mov byte [ebp - 0x421d], 1
cmp eax, 0x2000
jl 0x41cfa0
jmp 0x41d006
mov eax, dword [ebp - 0x4234]
movzx ecx, word [eax + 4]
mov edx, dword [eax + 0x18]
and ecx, 0xff
or ecx, 0x100
shl ecx, 0x10
cmp byte [edx + 0x54], 0
mov edx, dword [eax + 8]
mov byte [ebp - 0x421d], 0
je 0x41cff4
push 0x56efac
jmp 0x41cff9
push str.The_written_data_doesnt_match_the_disk_data
push ecx
push 0x178c
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
xor eax, eax
cmp byte [ebp - 0x421d], al
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.00514194
mov esp, ebp
pop ebp
ret 4