Function at 0x4a3cd0
Capabilities:
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fc9a3
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x83c], edx
mov edi, ecx
mov ecx, dword [edi + 0x3e8c]
mov eax, dword [edi + 0x1390]
mov dword [ebp - 0x838], eax
mov dword [ebp - 0x834], ecx
cmp ecx, 0x7a
jne 0x4a3d31
lea eax, [edi + 0x4bf8]
mov dword [ebp - 0x830], eax
jmp 0x4a3d42
lea eax, [edi + 0x3eb8]
mov dword [ebp - 0x830], eax
cmp ecx, 0x74
jne 0x4a3d4f
test byte [eax + 8], 2
mov byte [ebp - 0x821], 1
jne 0x4a3d56
mov byte [ebp - 0x821], 0
push 1
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], 0
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3d99
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4a3d99
cmp byte [edi + 0x14], 0
jne 0x4a3d99
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x828], esi
jmp 0x4a3db3
mov eax, dword [ebp - 0x828]
xor ecx, ecx
add ecx, esi
cdq
mov dword [ebp - 0x82c], ecx
adc eax, 0
mov dword [ebp - 0x828], eax
mov ecx, edi
call fcn.004a5a60
lea ebx, [edi + 0x17]
lea edx, [ebp - 0x820]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4a3dc7
test byte [edi + 0x3ea8], 0x10
je 0x4a3de9
cmp byte [edi + 0x65f8], al
jne 0x4a3de9
xor dl, dl
jmp 0x4a3deb
mov dl, 1
lea ecx, [ebp - 0x820]
call fcn.004a9220
push 0
push 0
push 0
lea eax, [ebp - 0x820]
mov byte [ebp - 0x823], 0
push eax
mov ecx, edi
mov byte [ebp - 0x822], 0
call fcn.004a56b0
test al, al
jne 0x4a3f0d
cmp byte [ebp - 0x822], 0
jne 0x4a3e70
lea edx, [ebp - 0x418]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4a3e33
mov dl, 1
lea ecx, [ebp - 0x418]
call fcn.004a9220
push 0
push 0
push 0
lea eax, [ebp - 0x418]
mov byte [ebp - 0x822], 1
push eax
mov ecx, edi
call fcn.004a56b0
test al, al
jne 0x4a3f48
cmp byte [ebp - 0x823], 0
jne 0x4a3f67
lea ecx, [ebp - 0x420]
call fcn.004ae780
push ecx
lea eax, [edi + 0x418]
mov dword [ebp - 4], 0
push eax
push ebx
push dword [ebp - 0x838]
lea ecx, [ebp - 0x420]
call fcn.004ae880
mov byte [ebp - 0x823], 1
mov dword [ebp - 4], 1
xor esi, esi
lea esp, [esp]
mov ecx, dword [ebp + esi*4 - 0x420]
test ecx, ecx
je 0x4a3ed1
mov eax, dword [ecx]
push 1
call dword [eax]
inc esi
cmp esi, 0x100
jb 0x4a3ec0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4a3ef1
push eax
call fcn.006b31f8
add esp, 4
push 0
push 0
push 0
lea eax, [ebp - 0x820]
mov ecx, edi
push eax
call fcn.004a56b0
test al, al
je 0x4a3e20
push 1
mov ecx, edi
call fcn.004a6db0
test al, al
jne 0x4a3fce
mov eax, dword [0x7e85a4]
test eax, eax
je 0x4a3f2c
cmp eax, 1
jne 0x4a3f36
mov dword [0x7e85a4], 2
inc dword [0x7e85a8]
call fcn.004a6170
push 2
call fcn.006c0359
xor ecx, ecx
lea ebx, [ebx]
mov al, byte [ebp + ecx - 0x418]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x821], al
test al, al
jne 0x4a3f50
jmp 0x4a3f0d
mov eax, dword [ebp - 0x838]
cmp byte [eax + 0x21c3], 0
jne 0x4a3f9f
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x820]
call fcn.004a9430
xor ecx, ecx
lea eax, [ebp - 0x418]
cmp byte [ebp - 0x418], cl
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
lea eax, [edi + 0x418]
mov ecx, edi
push eax
push ebx
call fcn.004a56b0
push 0
push dword [ebp - 0x828]
mov ecx, edi
push dword [ebp - 0x82c]
call fcn.004a5de0
xor al, al
jmp 0x4a40af
cmp byte [ebp - 0x821], 0
mov ecx, edi
je 0x4a3fe7
mov esi, dword [ebp - 0x834]
push esi
call fcn.004a7250
jmp 0x4a3ff2
call fcn.004a7360
mov esi, dword [ebp - 0x834]
cmp dword [edi + 0x3e8c], 0x74
jne 0x4a404e
movzx eax, byte [edi + 0x3ecc]
cmp eax, 5
ja case.0x4a4007.3
jmp dword [eax*4 + 0x4a40cc]
mov al, byte [edi + 0x3ec0]
mov ecx, 0x20
and al, 0xe0
mov edx, 0x10
cmp al, 0xe0
cmove ecx, edx
mov dword [edi + 0x3edc], ecx
mov ecx, dword [edi + 0x65f0]
sub ecx, dword [edi + 0x4bc0]
mov eax, dword [edi + 0x65f4]
sbb eax, dword [edi + 0x4bc4]
push 0
push eax
push ecx
mov ecx, edi
call fcn.004a5de0
cmp byte [ebp + 8], 0
je 0x4a4066
push 0x80a678
lea eax, [edi + 0x3ee8]
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
mov ecx, dword [ebp - 0x83c]
test ecx, ecx
je 0x4a40ad
cmp esi, 0x7b
jne 0x4a407e
mov byte [ecx + 0x4c6], 0
jmp 0x4a40a3
mov edx, dword [ebp - 0x830]
mov al, byte [edx + 8]
shr al, 1
and al, 1
mov byte [ecx + 0x4c6], al
mov eax, dword [edx + 0xd08]
mov dword [ecx + 0x20], eax
mov eax, dword [edx + 0xd0c]
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x510], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret