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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x54c384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x433895
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 0x433960
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x4335fe
cmp eax, ecx
je 0x43362d
cmp dword [ebp - 0x22c], eax
ja 0x43362d
jb 0x433610
cmp dword [ebp - 0x230], ecx
ja 0x43362d
mov dword [esi + 0x2470], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bdaf8
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 0x43394a
cmp dword [esi + 0x26f0], 0
je 0x433895
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.004c05c0
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 0x4338ab
mov ecx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x218]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433716
test dx, dx
je 0x433712
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433716
add eax, 4
add ecx, 4
test dx, dx
jne 0x4336f0
xor eax, eax
jmp 0x43371b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4338ab
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 0x433861
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 0x433828
mov dword [eax], edi
add dword [ebx + 4], 4
jmp 0x43383d
lea ecx, [ebp - 0x234]
push ecx
push eax
mov ecx, ebx
call fcn.0042c5c0
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 0x4337b0
mov eax, dword [ebp - 0x240]
jmp 0x43386d
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.004bdaf8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2468]
test eax, eax
jne 0x4338c1
mov dword [esi + 0x2468], 5
jmp 0x4338d0
cmp eax, 0xa
jbe 0x4338d0
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.00434300
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 0x433895
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.004bdaf8
mov esp, ebp
pop ebp
ret