Function at 0x43c260
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x57c
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x578], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x132
mov esi, eax
lea edi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x568], 0
lea edi, [ebx + 0x50]
mov ecx, 0x132
mov esi, eax
rep movsd dword es:[edi], dword [esi]
je 0x43c456
mov eax, dword [esp + 0x56c]
mov ecx, dword [esp + 0x570]
mov edx, dword [esp + 0x574]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x558]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x55c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x578]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 2
lea esp, [esp]
mov edx, 1
shl edx, cl
test eax, edx
je 0x43c413
add ecx, 1
cmp ecx, 0x1a
jl 0x43c300
mov eax, 0x2a
mov word [esp + 0x2c], ax
movzx eax, word [esp + 0xb8]
push eax
lea ecx, [esp + 0x32]
push str.Copy_of__c
push ecx
call dword [sym.imp.MSVCR80.dll__swprintf]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x148]
mov esi, dword [esp + 0x2c]
add esp, 0xc
test ecx, ecx
mov dword [esp + 0xb0], eax
jg 0x43c41e
jl 0x43c369
cmp esi, 0x7d82
ja 0x43c41e
cmp eax, 3
jne 0x43c41e
mov eax, 2
mov dword [esp + 0xb0], eax
test byte [0x4f16ac], 1
jne 0x43c398
or dword [0x4f16ac], 1
mov dword [0x4f16a8], 0x4dc5c0
mov edx, dword [0x4f16a8]
push eax
mov eax, dword [edx + 0x14]
push ecx
push esi
mov ecx, 0x4f16a8
call eax
mov word [esp + 0xb4], ax
push 0
push ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0x14], 0
call fcn.0043c5d0
test eax, eax
jne 0x43c5a9
call fcn.0041e870
mov edi, eax
mov esi, dword [edi]
push 0x451
add esi, 8
call fcn.00439d30
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Create_partition_failed.
push edi
call ecx
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x578]
xor ecx, esp
call fcn.00462b77
mov esp, ebp
pop ebp
ret 4
add ecx, 0x41
movzx eax, cx
jmp 0x43c31c
cmp eax, 2
je 0x43c37e
cmp eax, 3
je 0x43c37e
test eax, eax
je 0x43c37e
cmp eax, 1
jne 0x43c3b3
call fcn.00447ec0
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 8]
push esi
call eax
jmp 0x43c3ab
mov edx, dword [esp + 0x56c]
mov eax, dword [esp + 0x570]
mov ecx, dword [esp + 0x574]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x558]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x55c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x578]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 2
mov edx, 1
shl edx, cl
test eax, edx
je 0x43c59e
add ecx, 1
cmp ecx, 0x1a
jl 0x43c4a3
mov eax, 0x2a
mov si, word [esp + 0xb8]
mov word [esp + 0x2c], ax
movzx eax, si
push eax
lea ecx, [esp + 0x32]
push str.Copy_of__c
push ecx
call dword [sym.imp.MSVCR80.dll__swprintf]
mov edi, dword [esp + 0x148]
add esp, 0xc
cmp edi, 8
jne 0x43c50e
push 0x80
lea edx, [esp + 0x32]
push 0
push edx
call sub.ntdll.dll_memset
add esp, 0xc
cmp si, 0x2a
jne 0x43c50e
mov word [esp + 0x2c], si
cmp dword [esp + 0x24], 0
mov dword [esp + 0xb0], edi
jg 0x43c538
jl 0x43c528
cmp dword [esp + 0x20], 0x7d82
ja 0x43c538
cmp edi, 3
jne 0x43c538
mov dword [esp + 0xb0], 2
push 1
push ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
mov word [esp + 0xbc], 4
mov dword [esp + 0x14], 0
call fcn.0043c5d0
test eax, eax
jne 0x43c5a9
call fcn.0041e870
mov edi, eax
mov esi, dword [edi]
push 0x471
add esi, 8
call fcn.00439d30
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Create_partition_failed.
push edi
call eax
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x578]
xor ecx, esp
call fcn.00462b77
mov esp, ebp
pop ebp
ret 4
add ecx, 0x41
movzx eax, cx
jmp 0x43c4bf
mov ecx, dword [esp + 0x584]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00462b77
mov esp, ebp
pop ebp
ret 4