Function at 0x43dc70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x57c
mov eax, dword [0x4f8028]
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 0x43de66
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 0x43de23
add ecx, 1
cmp ecx, 0x1a
jl 0x43dd10
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 0x43de2e
jl 0x43dd79
cmp esi, 0x7d82
ja 0x43de2e
cmp eax, 3
jne 0x43de2e
mov eax, 2
mov dword [esp + 0xb0], eax
test byte [0x5032e8], 1
jne 0x43dda8
or dword [0x5032e8], 1
mov dword [0x5032e4], 0x4e8ae4
mov edx, dword [0x5032e4]
push eax
mov eax, dword [edx + 0x14]
push ecx
push esi
mov ecx, 0x5032e4
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.0043dfe0
test eax, eax
jne 0x43dfb9
call fcn.004205a0
mov edi, eax
mov esi, dword [edi]
push 0x457
add esi, 8
call fcn.0043b6d0
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.0046d6fd
mov esp, ebp
pop ebp
ret 4
add ecx, 0x41
movzx eax, cx
jmp 0x43dd2c
cmp eax, 2
je 0x43dd8e
cmp eax, 3
je 0x43dd8e
test eax, eax
je 0x43dd8e
cmp eax, 1
jne 0x43ddc3
call fcn.00449e70
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 8]
push esi
call eax
jmp 0x43ddbb
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 0x43dfae
add ecx, 1
cmp ecx, 0x1a
jl 0x43deb3
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 0x43df1e
push 0x80
lea edx, [esp + 0x32]
push 0
push edx
call sub.ntdll.dll_memset
add esp, 0xc
cmp si, 0x2a
jne 0x43df1e
mov word [esp + 0x2c], si
cmp dword [esp + 0x24], 0
mov dword [esp + 0xb0], edi
jg 0x43df48
jl 0x43df38
cmp dword [esp + 0x20], 0x7d82
ja 0x43df48
cmp edi, 3
jne 0x43df48
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.0043dfe0
test eax, eax
jne 0x43dfb9
call fcn.004205a0
mov edi, eax
mov esi, dword [edi]
push 0x477
add esi, 8
call fcn.0043b6d0
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.0046d6fd
mov esp, ebp
pop ebp
ret 4
add ecx, 0x41
movzx eax, cx
jmp 0x43decf
mov ecx, dword [esp + 0x584]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret 4