Function at 0x402970
Capabilities:
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a0
push ebx
push esi
push edi
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x4c], 0xdef182c
call fcn.004028f0
mov ecx, dword [ebp - 0x2c0]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x314], edx
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x2c4]
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x10], 0x531b
mov dword [ebp - 0x18], 0
jmp 0x4029e6
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov edi, 0x40a9cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
cmp dword [ebp - 0x18], ecx
jae 0x402a19
mov eax, dword [ebp - 0x18]
movsx ecx, byte [eax + 0x40a9cc]
cmp ecx, 0x5c
jne 0x402a17
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x40a9cd], 0
jmp 0x402a19
jmp 0x4029dd
mov dword [ebp - 0x2e4], 0
mov eax, dword [0x46db3c]
cdq
mov ecx, 0x4d16
idiv ecx
mov eax, dword [0x40adf0]
imul eax, edx
mov dword [0x46db3c], eax
push 0x105
push 0x4705cc
lea ecx, [ebp - 0x2e4]
push ecx
push 0x4706d8
push 0x4706d4
push 0x105
push 0x4704c4
push 0x40a9cc
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x402acc
push 0xa
push 0x40adf4
mov edx, dword [0x4706d4]
push edx
call fcn.00406296
add esp, 0xc
mov eax, dword [0x46db3c]
cdq
mov ecx, 0x46c7
idiv ecx
mov dword [0x40adf0], eax
mov edi, 0x40adf4
mov edx, 0x40ada8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xa
push 0x40adf4
mov eax, dword [ebp - 0x44]
push eax
call fcn.00406296
add esp, 0xc
cmp dword [0x46c920], 0x24b9
jne 0x402af2
mov byte [0x4703b8], 0x45
mov edi, 0x40adf4
mov edx, 0x40ada8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x48], 0x8d6
push 0xa
push 0x40adf4
mov eax, dword [ebp - 0x314]
push eax
call fcn.00406296
add esp, 0xc
mov dword [ebp - 0x2e0], 0x706a
mov edi, 0x40adf4
mov edx, 0x40ada8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x2f0], 0x17a6e8da
push 0xa
push 0x40adf4
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00406296
add esp, 0xc
mov dword [ebp - 0x2dc], 0xffffda1f
mov edi, 0x40adf4
mov edx, 0x40ada8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xa
push 0x40adf4
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.00406296
add esp, 0xc
mov edi, 0x40adf4
mov edx, 0x40ada8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x46db3c]
cdq
mov ecx, 0x36a6
idiv ecx
mov dword [0x40adf0], eax
mov dword [ebp - 0x57c], 0
push 0
push 0x4704b4
lea edx, [ebp - 0x57c]
push edx
push 0x4704a4
call fcn.00402720
add esp, 0x10
mov dword [ebp - 0xc], 0x11cfee50
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 5
mov byte [ebp - 0x30c], 0x61
mov byte [ebp - 0x30b], 0x62
mov byte [ebp - 0x30a], 0x63
mov byte [ebp - 0x309], 0x64
mov byte [ebp - 0x308], 0x65
xor eax, eax
mov byte [ebp - 0x307], al
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2f8], ecx
mov dword [ebp - 0x2f4], 0
jmp 0x402cd9
mov edx, dword [ebp - 0x2f4]
add edx, 1
mov dword [ebp - 0x2f4], edx
cmp dword [ebp - 0x2f4], 5
jge 0x402cf3
mov eax, dword [ebp - 0x2f8]
add eax, 4
mov dword [ebp - 0x2f8], eax
jmp 0x402cca
mov dword [ebp - 0x310], 0xe896dc9
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x2f8], ecx
mov dword [ebp - 0x2f4], 0
jmp 0x402d24
mov edx, dword [ebp - 0x2f4]
add edx, 1
mov dword [ebp - 0x2f4], edx
cmp dword [ebp - 0x2f4], 5
jge 0x402d3e
mov eax, dword [ebp - 0x2f8]
add eax, 1
mov dword [ebp - 0x2f8], eax
jmp 0x402d15
mov dword [ebp - 0x2d8], 0
jmp 0x402d59
mov ecx, dword [ebp - 0x2d8]
add ecx, 1
mov dword [ebp - 0x2d8], ecx
cmp dword [ebp - 0x2d8], 0x61a80
jge 0x402d7e
mov edx, dword [ebp - 0x2d8]
mov byte [edx + 0x40ae94], 0x51
mov dword [ebp - 0x580], 1
jmp 0x402d4a
mov byte [0x470430], 0x13
mov dword [ebp - 0x24], 0x2cf1
push 0x100
call fcn.00402fb1
add esp, 4
mov dword [ebp - 0x59c], eax
mov eax, dword [ebp - 0x59c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], 0x5498
push 0x100
call fcn.00402fb1
add esp, 4
mov dword [ebp - 0x5a0], eax
mov ecx, dword [ebp - 0x5a0]
mov dword [ebp - 0x304], ecx
mov dword [ebp - 0x578], 0x27c7
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], 0
jmp 0x402df1
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0x100
jge 0x402e2f
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
mov cl, byte [ebp - 0x20]
mov byte [eax], cl
mov dword [ebp - 0x584], 0x11f145e9
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, 0x258
div ecx
mov eax, dword [ebp - 0x304]
add eax, dword [ebp - 0x20]
mov cl, byte [ebp + edx - 0x2b0]
mov byte [eax], cl
jmp 0x402de8
mov dword [ebp - 0x570], 1
mov dword [ebp - 0x300], 0
mov byte [0x470445], 0xdf
mov dword [ebp - 0x20], 0
jmp 0x402e5c
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0x100
jge 0x402ef9
mov byte [0x47038b], 0x52
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x300]
add edx, ecx
mov eax, dword [ebp - 0x304]
add eax, dword [ebp - 0x20]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x402ea1
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x300], edx
mov dword [ebp - 0x58c], 1
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ebp - 0x2ec], al
mov dword [ebp - 0x588], 0xc87118e
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x300]
mov al, byte [edx]
mov byte [ecx], al
mov byte [0x47040a], 0xf7
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x300]
mov dl, byte [ebp - 0x2ec]
mov byte [ecx], dl
jmp 0x402e53
mov dword [ebp - 0x574], 2
mov dword [ebp - 0x300], 0
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x58], 0x3947
mov dword [ebp - 0x2e8], 0
jmp 0x402f38
mov ecx, dword [ebp - 0x2e8]
add ecx, 1
mov dword [ebp - 0x2e8], ecx
cmp dword [ebp - 0x2e8], 4
jae 0x402f9a
mov dword [ebp - 0x598], 0x1c65
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ebp - 0x2ec], al
mov dword [ebp - 0x594], 0x113f506d
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x300]
mov al, byte [edx]
mov byte [ecx], al
mov byte [0x4703ce], 0x78
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x300]
mov dl, byte [ebp - 0x2ec]
mov byte [ecx], dl
mov dword [ebp - 0x590], 0x193c
jmp 0x402f29
mov dword [ebp - 0x54], 1
call fcn.004020a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10