Function at 0x402f4e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.004538c5
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x47f3ce
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 8
call fcn.004538c5
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x47f3ce
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.00402f15
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40300a
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402fd9
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402fd5
imul eax, dword [ebx]
jmp 0x402fca
mov ecx, eax
test ecx, ecx
je 0x402ff8
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402ff1
push ebx
push eax
call fcn.004538cb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402fdf
call fcn.004538cb
add esp, 4
mov eax, 0x47f3ce
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.0045a850
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40303f
push ebx
call fcn.004538cb
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x403050
add eax, 8
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403072
push 6
call fcn.004538d1
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push getsockname
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x403092
mov eax, 0x47f3ce
push eax
push 2
mov ebx, 0x1a0
call fcn.0045a880
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4030bc
push ebx
call fcn.004538cb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
push 0
push getsockname
push 0
push 0x47f3d6
push getsockname
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4030e5
mov eax, 0x47f3ce
push eax
push 3
mov ebx, 0x1c4
call fcn.0045a8b0
add esp, 0x28
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40311d
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403119
imul eax, dword [ebx]
jmp 0x40310e
mov ecx, eax
test ecx, ecx
je 0x40313c
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x403135
push ebx
push eax
call fcn.004538cb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403123
call fcn.004538cb
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.00402f15
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40330d
mov ebx, dword [ebp - 0xc]
call fcn.00402f2e
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x403184
push 4
call fcn.004538d1
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x403197
push 1
call fcn.004538d1
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push getsockname
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x4031b4
mov eax, 0x47f3ce
push eax
push 1
mov ebx, 0x168
call fcn.0045ab20
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4031ec
push 6
call fcn.004538d1
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4031ff
push ebx
call fcn.004538cb
add esp, 4
cmp dword [ebp - 0x24], 3
jne 0x403305
mov ebx, dword [ebp - 0xc]
call fcn.00402f2e
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x403226
push 4
call fcn.004538d1
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x403239
push 1
call fcn.004538d1
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push getsockname
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x403256
mov eax, 0x47f3ce
push eax
push 1
mov ebx, 0x168
call fcn.0045ab20
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 4
mov eax, 2
call fcn.00459d50
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
call fcn.00402f2e
mov dword [ebp - 0x28], ecx
mov edi, dword [ebp - 0x24]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x4032af
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x24]
call fcn.004538e3
add esp, 8
mov dword [ebp - 0x14], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x28]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x20]
push edi
test eax, eax
je 0x4032f2
push eax
mov ebx, eax
call fcn.00401124
inc eax
push eax
call fcn.004538c5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [edi], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x403305
push ebx
call fcn.004538cb
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x403159
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ebx, eax
call fcn.00402f2e
pop eax
sub ebx, eax
push ecx
push ebx
push eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.004538c5
add esp, 4
pop esi
mov edi, eax
pop ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
test ecx, ecx
je 0x40336b
push eax
lodsd eax, dword [esi]
push esi
push edi
push ecx
test eax, eax
je 0x40335f
push eax
mov ebx, eax
call fcn.00401124
inc eax
push eax
call fcn.004538c5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop ecx
pop edi
pop esi
stosd dword es:[edi], eax
dec ecx
jne 0x403342
pop eax
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40338c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403388
imul eax, dword [ebx]
jmp 0x40337d
mov ecx, eax
test ecx, ecx
je 0x4033ab
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4033a4
push ebx
push eax
call fcn.004538cb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403392
call fcn.004538cb
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.00402f15
jmp 0x4033c8
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4033d9
push ebx
call fcn.004538cb
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4033f7
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4033f3
imul eax, dword [ebx]
jmp 0x4033e8
mov ecx, eax
test ecx, ecx
je 0x403416
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40340f
push ebx
push eax
call fcn.004538cb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4033fd
call fcn.004538cb
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40343c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403438
imul eax, dword [ebx]
jmp 0x40342d
mov ecx, eax
test ecx, ecx
je 0x40345b
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x403454
push ebx
push eax
call fcn.004538cb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403442
call fcn.004538cb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4