Function at 0x41a9e0
Capabilities:
Get disk size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x515584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x41acf5
xorps xmm0, xmm0
lea edi, [esi + 0x5d120]
push edi
movlpd qword [ebp - 0x230], xmm0
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
mov dword [ebp - 0xa], 0x5c003a
mov word [ebp - 0xc], ax
xor eax, eax
push eax
push eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x41adc0
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x41aa5e
cmp eax, ecx
je 0x41aa8d
cmp dword [ebp - 0x22c], eax
ja 0x41aa8d
jb 0x41aa70
cmp dword [ebp - 0x230], ecx
ja 0x41aa8d
mov dword [esi + 0x2470], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret
push 0
push 0x20
push 4
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x41adaa
cmp dword [esi + 0x26f0], 0
je 0x41acf5
mov eax, dword [esi + 0x26e4]
lea ebx, [esi + 0x26e4]
push 0x208
mov dword [ebx + 4], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call fcn.00490000
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x238], xmm0
push 2
push 0
push 0xffffffffffffff96
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x6a
lea eax, [ebp - 0x218]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x21c], 0x6a
jne 0x41ad0b
mov ecx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x218]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ab76
test dx, dx
je 0x41ab72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ab76
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ab50
xor eax, eax
jmp 0x41ab7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41ad0b
push 1
push eax
push 0xffffffffffffff92
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x21c]
push eax
push 4
lea eax, [ebp - 0x228]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x228]
add eax, dword [ebp - 0x21c]
push 1
push 0
neg eax
push eax
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x21c]
push eax
push 4
lea eax, [ebp - 0x224]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
jbe 0x41acc1
mov eax, dword [ebp - 0x234]
lea edi, [esi + 0x5cfb8]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x240], eax
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x20
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x18]
add dword [edi + 8], eax
mov eax, dword [edi + 0x1c]
adc dword [edi + 0xc], eax
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 8]
mov eax, dword [edi + 0x14]
sbb eax, dword [edi + 0xc]
add ecx, 1
mov edx, dword [ebp - 0x23c]
adc eax, 0
mov dword [edi], 0
add dword [ebp - 0x240], ecx
mov dword [edi + 4], 0
adc edx, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x234], edi
cmp dword [ebx + 8], eax
je 0x41ac88
mov dword [eax], edi
add dword [ebx + 4], 4
jmp 0x41ac9d
lea ecx, [ebp - 0x234]
push ecx
push eax
mov ecx, ebx
call fcn.00415f70
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x220]
add edi, 0x20
inc eax
mov dword [ebp - 0x220], eax
cmp eax, dword [ebp - 0x224]
jb 0x41ac10
mov eax, dword [ebp - 0x240]
jmp 0x41accd
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x238]
mov ecx, dword [esi + 0x5d100]
sub ecx, eax
mov eax, dword [esi + 0x5d104]
mov dword [esi + 0x5d118], ecx
sbb eax, edx
mov dword [esi + 0x5d110], ecx
mov dword [esi + 0x5d11c], eax
mov dword [esi + 0x5d114], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2468]
test eax, eax
jne 0x41ad21
mov dword [esi + 0x2468], 5
jmp 0x41ad30
cmp eax, 0xa
jbe 0x41ad30
mov dword [esi + 0x2468], 0xa
mov dword [esi + 0x5cfc0], 0
mov ecx, ebx
mov dword [esi + 0x5cfc4], 0
mov edx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
add edx, 0xffffffff
mov dword [esi + 0x5cfc8], edx
adc eax, 0xffffffff
mov dword [esi + 0x5cfcc], eax
lea eax, [esi + 0x5cfb8]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
call fcn.0041b760
mov eax, dword [esi + 0x5d104]
push 0
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
push dword [esi + 0x5d100]
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x41acf5
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret