Function at 0x436050
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6410c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x6f1114]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call esi
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a150d
add esp, 4
mov edi, eax
push edi
push dword [ebp - 0x3c]
call esi
xor ecx, ecx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
cmp word [edi], cx
je 0x4361bf
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov eax, edi
mov dword [ebp - 0x44], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436110
sub eax, edx
lea ecx, [ebp - 0x58]
sar eax, 1
push eax
push edi
call fcn.00402400
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
je 0x43615e
movups xmm0, xmmword [ebp - 0x58]
mov dword [eax + 0x10], 0
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x1c], 0x18
mov word [ebp - 0x58], ax
jmp 0x43616e
lea ecx, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00436ef0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4361a9
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43619f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436303
push edx
push ecx
call fcn.004a14d7
add esp, 8
push edi
call esi
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], 0
jne 0x4360f0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
shr eax, 2
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x436272
xor esi, esi
cmp dword [ecx + esi + 0x14], 8
lea eax, [ecx + esi]
jb 0x4361de
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x436262
mov eax, dword [ebp - 0x20]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x4361f7
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x436262
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
shrd edi, eax, 0x1e
mov eax, dword [ebp - 0x40]
cmp edi, dword [eax + 0x224]
jle 0x436262
cmp dword [eax + 0x23c], 8
lea ecx, [eax + 0x228]
mov eax, ecx
jb 0x436236
mov eax, dword [ecx]
xor edx, edx
mov dword [ecx + 0x10], 0
mov word [eax], dx
mov eax, dword [ebp - 0x20]
add eax, esi
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x436252
mov eax, dword [eax]
push edx
push eax
call fcn.00402400
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x224], edi
mov ecx, dword [ebp - 0x20]
add esi, 0x18
sub dword [ebp - 0x3c], 1
jne 0x4361d2
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x224], 0
jle 0x43628e
cmp dword [eax + 0x238], 0
jbe 0x43628e
mov edi, 1
jmp 0x436290
xor edi, edi
test ecx, ecx
je 0x4362e3
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.00407610
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4362d9
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436303
push ecx
push esi
call fcn.004a14d7
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a1496
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004bd1a9
int3