Function at 0x404980
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42ddfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push ebp
push esi
mov dword [esp + 0x28], ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
mov dl, byte [esp + 0x26c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [0x43b2a4]
xor eax, eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x158], ecx
mov dword [esp + 0x45], eax
mov ecx, 0x40
mov dword [esp + 0x49], eax
lea edi, [esp + 0x15c]
mov dword [esp + 0x4d], eax
xor esi, esi
mov word [esp + 0x51], ax
push 0x43b384
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x40], esi
mov byte [esp + 0x44], 0
mov byte [esp + 0x57], al
mov byte [esp + 0x15c], dl
call fcn.00422a7b
push 0x43b378
lea ecx, [esp + 0x24]
mov dword [esp + 0x268], esi
call fcn.00422a7b
push 0x43b374
lea ecx, [esp + 0x28]
mov byte [esp + 0x268], 1
call fcn.00422a7b
push 0x43fc78
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 2
call fcn.00422a7b
lea eax, [esp + 0x40]
push 0x14
push eax
push esi
lea ecx, [esp + 0x48]
push esi
push ecx
lea edx, [esp + 0x6c]
push 0xff
lea eax, [esp + 0x170]
push edx
push eax
mov byte [esp + 0x284], 3
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, 1
jne 0x404c1e
lea ecx, [esp + 0x40]
push 0x43fc78
push ecx
call fcn.0041ad30
add esp, 8
test eax, eax
je 0x404af9
lea edx, [esp + 0x40]
lea ecx, [esp + 0x28]
push edx
call fcn.00422a7b
push eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x1c]
mov bl, 4
push eax
push ecx
mov byte [esp + 0x270], bl
call fcn.00422c3c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 5
call fcn.00422d9c
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], bl
call fcn.00422a0d
mov byte [esp + 0x264], 3
lea ecx, [esp + 0x28]
jmp 0x404b2b
lea edx, [esp + 0x30]
push 0x43b370
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00422ca2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 6
call fcn.00422d9c
mov byte [esp + 0x264], 3
lea ecx, [esp + 0x18]
call fcn.00422a0d
lea ecx, [esp + 0x58]
push 0x43fc78
push ecx
call fcn.0041ad30
add esp, 8
test eax, eax
je 0x404c55
lea edx, [esp + 0x58]
lea ecx, [esp + 0x1c]
push edx
call fcn.00422a7b
mov esi, eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x270], 7
call fcn.00422c3c
push 0x43b368
push eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x26c], 8
push eax
call fcn.00422ca2
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x270], 9
call fcn.00422c3c
push esi
push eax
lea eax, [esp + 0x20]
mov bl, 0xa
push eax
mov byte [esp + 0x270], bl
call fcn.00422c3c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 0xb
call fcn.00422d9c
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], bl
call fcn.00422a0d
lea ecx, [esp + 0x28]
mov byte [esp + 0x264], 9
call fcn.00422a0d
lea ecx, [esp + 0x54]
mov byte [esp + 0x264], 8
call fcn.00422a0d
lea ecx, [esp + 0x34]
mov byte [esp + 0x264], 7
call fcn.00422a0d
mov byte [esp + 0x264], 3
lea ecx, [esp + 0x1c]
jmp 0x404c50
lea ecx, [esp + 0x30]
push 0x43b370
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00422ca2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 0xc
call fcn.00422d9c
mov byte [esp + 0x264], 3
lea ecx, [esp + 0x1c]
call fcn.00422a0d
push 0x43b364
lea ecx, [esp + 0x14]
call fcn.00422d75
push 0x43fc78
lea ecx, [esp + 0x18]
call fcn.00422a7b
mov edi, dword [esp + 0x270]
mov eax, dword [esp + 0x26c]
mov byte [esp + 0x264], 0xd
lea esi, [edi*8]
sub esi, edi
shl esi, 3
lea ebp, [esi + 0x43f908]
lea ebx, [esi + 0x43f900]
push ebp
push ebx
push eax
call fcn.00408f30
add esp, 0xc
test eax, eax
je 0x404d76
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00409380
lea edx, [esp + 0x24]
push ebp
push edx
mov byte [esp + 0x274], 0xe
call fcn.00409380
mov eax, dword [ebx]
mov ecx, dword [ebp]
sub eax, ecx
mov ecx, dword [ebx + 4]
mov ebx, dword [ebp + 4]
mov dword [esp + 0x44], eax
lea edx, [esp + 0x44]
lea eax, [esp + 0x38]
sbb ecx, ebx
push edx
push eax
mov byte [esp + 0x27c], 0xf
mov dword [esp + 0x50], ecx
call fcn.00409380
add esp, 0x18
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push edx
push ecx
push eax
lea edx, [esp + 0x28]
push 0x43b350
push edx
mov byte [esp + 0x280], 0x10
call fcn.00420ad5
add esp, 0x1c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00422d9c
lea ecx, [esp + 0x28]
mov byte [esp + 0x264], 0xf
call fcn.00422a0d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x264], 0xe
call fcn.00422a0d
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], 0xd
call fcn.00422a0d
jmp 0x404ef2
mov ecx, dword [esp + 0x26c]
lea ebx, [esi + 0x43f8f8]
push ebx
push ecx
call fcn.00408df0
add esp, 8
test eax, eax
je 0x404e8a
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
push 0
push 0x100000
push ebx
push ebp
mov dword [esp + 0x48], ebx
call fcn.00413250
mov ebx, eax
cmp ebx, 8
mov dword [esp + 0x1c], ebx
je 0x404dfb
test ebx, ebx
je 0x404dfb
cmp ebx, 0xffffffff
je 0x404dfb
mov edx, dword [esp + 0x38]
push 0
push 0x200
push edx
push ebp
call fcn.00413250
cmp eax, 0xffffffff
je 0x404dfb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push ebx
push eax
lea edx, [esp + 0x24]
push 0x43b334
push edx
call fcn.00420ad5
mov ebp, dword [esp + 0x44]
add esp, 0x18
jmp 0x404e7a
mov ebp, dword [esp + 0x2c]
lea eax, [edi + edi*2]
push 0
lea eax, [eax + eax*4]
lea ebx, [ebp + eax*4]
lea ecx, [ebx + 0x7c]
call fcn.00423f5e
mov eax, dword [ebp + 0xadc]
mov ecx, dword [ebx + 0x4d8]
push eax
push 0
push 0x172
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x43f91c], 0
cmp eax, 8
mov eax, dword [esp + 0x24]
push eax
jne 0x404e62
mov edx, dword [esp + 0x24]
push edx
push 8
push eax
lea eax, [esp + 0x24]
push 0x43b334
push eax
call fcn.00420ad5
add esp, 0x18
jmp 0x404e7a
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push eax
push 0x43b318
push edx
call fcn.00420ad5
add esp, 0x14
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00422d9c
jmp 0x404ef6
mov ebp, dword [esp + 0x2c]
lea eax, [edi + edi*2]
push 0
lea ecx, [eax + eax*4]
lea ebx, [ebp + ecx*4]
lea ecx, [ebx + 0x7c]
call fcn.00423f5e
mov ebp, dword [ebp + 0xadc]
mov edx, dword [ebx + 0x4d8]
push ebp
push 0
push 0x172
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push eax
lea edx, [esp + 0x20]
push 0x43b318
push edx
mov dword [esi + 0x43f91c], 0
call fcn.00420ad5
add esp, 0x14
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00422d9c
mov ebp, dword [esp + 0x2c]
lea ecx, [edi + 0x418]
push ecx
mov ecx, ebp
call fcn.00401b00
push 0x10
push edi
mov ecx, ebp
call fcn.00404fa0
lea edx, [esp + 0x10]
lea ecx, [ebp + edi*4 + 0x47c]
push edx
call fcn.00422b46
lea ecx, [esp + 0x14]
mov byte [esp + 0x264], 3
call fcn.00422a0d
lea ecx, [esp + 0x10]
mov byte [esp + 0x264], 2
call fcn.00422a0d
lea ecx, [esp + 0x24]
mov byte [esp + 0x264], 1
call fcn.00422a0d
lea ecx, [esp + 0x20]
mov byte [esp + 0x264], 0
call fcn.00422a0d
lea ecx, [esp + 0x30]
mov dword [esp + 0x264], 0xffffffff
call fcn.00422a0d
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x258
ret 8