Function at 0x423650
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4d6bac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x524
mov eax, dword [esp + 0x538]
push ebx
mov ebx, ecx
push ebp
mov dword [eax], 0
push esi
mov eax, dword [ebx + 0x310]
push edi
test eax, eax
mov dword [esp + 0x10], ebx
jne 0x423696
mov eax, 0x80004005
jmp 0x423ae0
mov dl, byte [0x4fbe40]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x229]
mov byte [esp + 0x228], dl
mov byte [esp + 0x430], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x431]
mov esi, dword [esp + 0x544]
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.kernel32.dll_lstrcpy]
lea ecx, [esp + 0x228]
stosw word es:[edi], ax
push esi
push ecx
stosb byte es:[edi], al
call ebp
lea edx, [esp + 0x228]
push edx
call fcn.00443a50
add esp, 4
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
lea ecx, [esp + 0x430]
lea edx, [esp + 0x228]
push ecx
push edx
mov edi, eax
call fcn.00443a30
add esp, 8
lea eax, [esp + 0x20]
push esi
push eax
call ebp
cmp edi, 5
je 0x4237c3
cmp edi, 2
je 0x4237c3
cmp edi, 4
jne 0x4237a1
cmp byte [esp + 0x21], 0x3a
jne 0x42378e
mov cl, byte [0x4fbe40]
xor eax, eax
mov byte [esp + 0x32c], cl
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x32d]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x32c]
push edx
push eax
call fcn.004064a0
add esp, 8
test eax, eax
je 0x42378e
lea ecx, [esp + 0x32c]
lea edx, [esp + 0x20]
push ecx
push edx
call ebp
mov ecx, dword [ebx + 0x310]
lea eax, [esp + 0x18]
push eax
push 0x4ee990
push ecx
jmp 0x4237b2
mov eax, dword [ebx + 0x310]
lea edx, [esp + 0x18]
push edx
push 0x4ee97c
push eax
call fcn.00421fb0
add esp, 0xc
test eax, eax
jge 0x42382a
jmp 0x423ae0
lea ecx, [esp + 0x430]
lea edx, [esp + 0x20]
push ecx
push edx
call ebp
push 0x5c
push esi
call fcn.004c81f0
add esp, 8
test eax, eax
je 0x4237ef
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.kernel32.dll_lstrcat]
jmp 0x423809
mov edi, dword [sym.imp.kernel32.dll_lstrcat]
lea ecx, [esp + 0x20]
push 0x4ee610
push ecx
call edi
lea edx, [esp + 0x20]
push esi
push edx
call edi
mov ecx, dword [ebx + 0x310]
lea eax, [esp + 0x18]
push eax
push 0x4ee970
push ecx
call fcn.00421fb0
add esp, 0xc
test eax, eax
jl 0x423ae0
push 0x1c
call fcn.004c7e90
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
xor esi, esi
cmp ebp, esi
mov dword [esp + 0x53c], esi
je 0x423874
push 0x80
mov dword [ebp], 0x4d87ec
call fcn.004c7e90
add esp, 4
mov dword [ebp + 4], eax
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], 0x1f
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], pe_nt_image_headers32
jmp 0x423876
xor ebp, ebp
mov ecx, dword [ebx + 0x310]
mov dword [esp + 0x53c], 0xffffffff
cmp ecx, esi
mov dword [esp + 0x14], ecx
je 0x4238ff
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edx, [eax + 1]
cmp esi, edx
jne 0x4238ed
add eax, dword [ebp + 0x14]
lea eax, [eax*4 + 4]
push eax
call fcn.004c7e90
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov ebx, eax
lea ecx, [ecx*4 + 4]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
push eax
call fcn.004c7e56
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add esp, 8
add ecx, eax
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 8]
inc eax
xor esi, esi
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x18]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x423979
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x423965
add eax, dword [ebp + 0x14]
lea edx, [eax*4 + 4]
push edx
call fcn.004c7e90
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov edi, ebx
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
push eax
call fcn.004c7e56
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add esp, 8
add ecx, eax
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x14]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x310]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov dl, byte [0x4fbe40]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], dl
lea esi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x20]
mov dword [esp + 0x10], esi
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp cl, 0x5c
jne 0x4239c2
lea ecx, [esp + 0x22]
mov dword [esp + 0x10], ecx
mov esi, ecx
mov edx, dword [esp + 0x18]
mov cl, byte [esi]
cmp cl, 0x5c
je 0x4239e0
test cl, cl
je 0x4239e0
mov byte [esp + eax + 0x124], cl
inc eax
inc esi
mov dword [esp + 0x10], esi
jmp 0x4239c6
test eax, eax
je 0x423aac
mov byte [esp + eax + 0x124], 0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x124]
push eax
push ecx
push edx
call fcn.00421fb0
add esp, 0xc
test eax, eax
jl 0x423ae0
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x423a8c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x423a74
add eax, dword [ebp + 0x14]
lea eax, [eax*4 + 4]
push eax
call fcn.004c7e90
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov ebx, eax
lea ecx, [ecx*4 + 4]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
push eax
call fcn.004c7e56
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x18]
add esp, 8
add ecx, eax
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x14]
mov cl, byte [esi]
mov edx, eax
xor eax, eax
mov dword [esp + 0x18], edx
test cl, cl
mov byte [esp + 0x124], 0
je 0x423aac
inc esi
mov dword [esp + 0x10], esi
jmp 0x4239c6
push 0x28
call fcn.004c7e90
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x53c], 1
je 0x423ad3
push ebp
mov ecx, eax
call fcn.00422520
jmp 0x423ad5
xor eax, eax
mov ecx, dword [esp + 0x548]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [esp + 0x534]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x530
ret 8