Function at 0x4af710
Capabilities:
Get disk information
Get disk size
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe40
push ebx
push ebp
push esi
push edi
push 1
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esp + 0x24], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x6c], 3
mov dword [esp + 0x1c], eax
lea esp, [esp]
add eax, 0x41
push 0x610d60
mov dword [esp + 0x18], 1
mov word [0x610d58], ax
mov word [0x610d60], ax
mov word [esp + 0x790], si
mov word [esp + 0x998], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esp + 0x20], eax
add eax, 0xfffffffe
cmp eax, 4
mov word [esp + 0x484], si
ja case.default.0x4af78a
jmp dword [eax*4 + 0x4afba8]
mov ecx, dword [0x621c80]
push 0x104
lea eax, [esp + 0x488]
push eax
push 0xbcc1
push ecx
call sym.vidcap60.exe__SfLoadString_16
mov dword [esp + 0x14], esi
jmp 0x4af90f
mov eax, dword [0x621c80]
push 0x104
lea edx, [esp + 0x488]
push edx
push 0xbcc2
push eax
call sym.vidcap60.exe__SfLoadString_16
push 0x104
lea ecx, [esp + 0x998]
push ecx
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
mov ecx, edx
push ecx
push 0x104
lea edx, [esp + 0x7a4]
push edx
jmp 0x4af887
mov ecx, dword [0x621c80]
push 0x104
lea eax, [esp + 0x488]
push eax
push 0xbcc3
push ecx
call sym.vidcap60.exe__SfLoadString_16
push 0x104
lea edx, [esp + 0x998]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, eax
push ecx
mov edx, eax
push edx
push 0x104
lea eax, [esp + 0x7a4]
push eax
jmp 0x4af887
mov edx, dword [0x621c80]
push 0x104
lea ecx, [esp + 0x488]
push ecx
push 0xbcc4
push edx
call sym.vidcap60.exe__SfLoadString_16
push 0x104
lea eax, [esp + 0x998]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
mov eax, ecx
push eax
push 0x104
lea ecx, [esp + 0x7a4]
push ecx
push 0x610d60
mov dword [esp + 0x30], 0x104
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4af90f
mov dword [esp + 0x14], esi
jmp 0x4af90f
mov eax, dword [0x621c80]
push 0x104
lea edx, [esp + 0x488]
push edx
push 0xbcc5
push eax
call sym.vidcap60.exe__SfLoadString_16
push 0x104
lea ecx, [esp + 0x998]
push ecx
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
mov ecx, edx
push ecx
push 0x104
lea edx, [esp + 0x7a4]
push edx
push 0x610d60
mov dword [esp + 0x30], 0x104
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4af901
mov dword [esp + 0x14], esi
cmp word [esp + 0x994], si
je case.default.0x4af78a
mov ecx, dword [esp + 0x18]
push 0x4201
lea eax, [esp + 0xba0]
push eax
push 0x610d60
call fcn.004af5e0
mov ecx, dword [0x610d58]
mov dx, word [0x610d5c]
xor edi, edi
xor ebx, ebx
xor ebp, ebp
inc eax
mov word [esp + 0x6e], ax
mov eax, dword [esp + 0xba0]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x20]
cmp eax, 3
mov dword [esp + 0x70], ecx
mov word [esp + 0x74], dx
je 0x4af9a8
cmp eax, 5
je 0x4af996
movzx edx, word [esp + 0x6c]
lea eax, [esp + 0x484]
push eax
lea ecx, [esp + 0xbac]
push ecx
lea eax, [esp + edx*2 + 0x78]
push str._s_t_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4afa98
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
add eax, 7
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
lea edx, [esp + 0x78c]
push edx
call fcn.004af2a0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x34]
push eax
push 0x610d60
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4afa6b
mov eax, dword [esp + 0x28]
mul dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edi, edx
push edi
mov esi, eax
push esi
push 0
push ecx
call fcn.005c45d0
push edi
push esi
mov ebp, edx
mov edx, dword [esp + 0x34]
push 0
push edx
mov ebx, eax
call fcn.005c45d0
mov esi, eax
lea eax, [esp + 0x70c]
push eax
push ebp
push ebx
mov edi, edx
call sym.vidcap60.exe__SfGetByteSizeText_12
lea ecx, [esp + 0x68c]
push ecx
push edi
push esi
call sym.vidcap60.exe__SfGetByteSizeText_12
lea edx, [esp + 0x68c]
push edx
lea eax, [esp + 0x710]
push eax
movzx eax, word [esp + 0x74]
lea ecx, [esp + 0x48c]
push ecx
push 0x610d58
lea edx, [esp + 0x79c]
push edx
lea ecx, [esp + eax*2 + 0x84]
push str._s___s__t_s_t_s_t_s
push ecx
call sym.vidcap60.exe_SfPrintF
add esp, 0x1c
jmp 0x4afa98
movzx ecx, word [esp + 0x6c]
lea edx, [esp + 0x484]
push edx
push 0x610d58
lea eax, [esp + 0x794]
push eax
lea edx, [esp + ecx*2 + 0x7c]
push str._s___s__t_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
inc eax
mov word [esp + 0x6e], ax
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x5c], 0x190000
je 0x4afac4
push 0x610d58
call fcn.004af310
test eax, eax
je 0x4afac4
or dword [esp + 0x5c], 0x20000
push 0x18
push 1
call dword [0x5d24c0]
add esp, 8
test eax, eax
je 0x4afb71
mov ecx, dword [esp + 0x1c]
mov dword [eax], 7
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
mov dword [esp + 0x68], eax
cmp dword [esp + 0x20], 5
jne 0x4afb51
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x718]
test eax, eax
je 0x4afb51
xor edx, edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
lea edx, [esp + 0x5c]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x58]
push edx
mov edx, dword [ecx + 0x71c]
push edx
lea edx, [esp + 0x40]
push edx
push ecx
mov dword [esp + 0x48], 0x411
call eax
movzx eax, word [esp + 0x6e]
push 0
push 0xffffffffffffffff
lea ecx, [eax + eax + 0x1c]
mov eax, dword [esp + 0xe5c]
push ecx
lea edx, [esp + 0x68]
push edx
push eax
call sym.vidcap60.exe__SfList_AllocAndInsertItem_20
xor esi, esi
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x1a
mov dword [esp + 0x1c], eax
jl 0x4af740
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edx, dword [esp + 0xe54]
mov eax, dword [edx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe40
ret 4