Function at 0x41f150
Capabilities:
Get disk size

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 4], edi
je 0x41f16d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
lea esi, [ebx + 0x5d0d0]
mov dword [esp + 0x28], edi
push esi
mov dword [esp + 0x30], edi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push edi
mov word [esp + 0x24], ax
lea eax, [esp + 0x2c]
push edi
lea ecx, [esp + 0x28]
push eax
push ecx
mov word [esp + 0x32], 0x3a
mov word [esp + 0x34], 0x5c
mov word [esp + 0x36], di
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x41f466
mov eax, dword [ebx + 0x5d0b0]
mov ecx, dword [ebx + 0x5d0b4]
cmp eax, 0xffffffff
jne 0x41f1cc
cmp ecx, eax
je 0x41f1f2
mov edx, dword [esp + 0x2c]
cmp edx, ecx
ja 0x41f1f2
jb 0x41f1de
mov ecx, dword [esp + 0x28]
cmp ecx, eax
ja 0x41f1f2
pop edi
pop esi
mov dword [ebx + 0x246c], 2
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
push edi
mov ebp, 4
push 0x20
push ebp
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx + 4], eax
je 0x41f450
cmp dword [ebx + 0x26f8], edi
je 0x41f443
mov edx, dword [ebx + 0x26f0]
lea esi, [ebx + 0x26e8]
mov eax, edx
mov ecx, dword [esi + 4]
cmp eax, edx
je 0x41f245
mov edi, dword [eax]
add eax, ebp
mov dword [ecx], edi
add ecx, ebp
cmp eax, edx
jne 0x41f237
xor edi, edi
mov edx, dword [esi + 8]
mov dword [esi + 8], ecx
mov ecx, ebx
mov dword [esp + 0x1c], edx
call fcn.0041f710
test eax, eax
jne 0x41f443
cmp dword [ebx + 0x2464], edi
ja 0x41f270
mov dword [ebx + 0x2464], 5
mov ecx, dword [ebx + 0x2464]
mov eax, 0xa
cmp ecx, eax
jbe 0x41f285
mov dword [ebx + 0x2464], eax
mov eax, dword [ebx + 0x5d0b0]
mov ecx, dword [ebx + 0x5d0b4]
sub eax, 1
mov dword [ebx + 0x5cf74], edi
sbb ecx, edi
mov dword [ebx + 0x5cf7c], eax
mov dword [ebx + 0x5cf78], edi
mov dword [ebx + 0x5cf80], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
lea edx, [ebx + 0x5cf6c]
sar ecx, 2
cmp ecx, 1
mov dword [esp + 0x10], edx
mov edi, eax
jae 0x41f381
mov edx, dword [esi + 4]
test edx, edx
je 0x41f2e1
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x41f2e6
mov ecx, 1
test edx, edx
jne 0x41f2ee
xor eax, eax
jmp 0x41f2f3
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
jge 0x41f2ff
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.00460d50
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.00432e50
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 8]
add edx, 4
mov ecx, esi
push edx
push eax
push edi
call fcn.00460d50
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.0048a530
mov eax, dword [esi + 4]
push eax
call fcn.004d0379
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [ebp + ecx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.00420f20
lea eax, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
jmp 0x41f407
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x41f3ce
lea edx, [edi + 4]
mov ecx, esi
push edx
push eax
push edi
call fcn.00460d50
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00432e50
mov eax, dword [esi + 8]
cmp edi, eax
je 0x41f404
mov edx, dword [esp + 0x10]
mov dword [edi], edx
add edi, ebp
cmp edi, eax
jne 0x41f3c0
jmp 0x41f404
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.00460d50
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x41f3f1
sub eax, ebp
sub ecx, ebp
cmp eax, edi
mov edx, dword [eax]
mov dword [ecx], edx
jne 0x41f3e5
lea eax, [edi + 4]
cmp edi, eax
je 0x41f404
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, ebp
cmp edi, eax
jne 0x41f3f8
add dword [esi + 8], ebp
mov eax, dword [ebx + 0x5d0b0]
mov edx, dword [ebx + 0x5d0b4]
mov ecx, 0x20
call fcn.004d04a0
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x5d0b0]
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
mov dword [ebx + 0x246c], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x2470], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret