Function at 0x424780
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x44a4de
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x45b030]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b030]
xor eax, esp
push eax
lea eax, [esp + 0x46c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x47c]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x474], edi
mov edx, dword [0x45e5d0]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e5d0
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea esi, [esp + 0x2c]
call fcn.004030f0
mov byte [esp + 0x474], 2
mov esi, dword [eax]
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x424815
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], edi
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.OneKeyInstall_setupdir
push esi
call edx
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x474], 1
call fcn.00411b90
cmp esi, edi
je 0x424889
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x42485a
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
cmp eax, edi
jne 0x42485f
xor ecx, ecx
jmp 0x424873
mov eax, 0x4502f8
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x424864
sub ecx, esi
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x1c]
call fcn.004038a0
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jne 0x4248d0
lea eax, [esp + 0x20]
push eax
call fcn.004255c0
lea edi, [esp + 0x18]
mov byte [esp + 0x474], 3
call fcn.00403940
mov byte [esp + 0x474], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4248cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov eax, 2
cmp dword [edi - 0xc], eax
jl 0x424a4d
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
call fcn.00402770
mov byte [esp + 0x474], 4
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], 1
jle 0x42490b
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00403780
mov ecx, dword [esp + 0x28]
push 0
push 0
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x424a25
lea esi, [esp + 0x54]
call fcn.00410cb0
mov ebx, dword [eax]
lea esi, [esp + 0x44]
call fcn.00410cb0
mov byte [esp + 0x474], 6
mov ebp, dword [eax]
mov edx, dword [ebx]
mov esi, dword [ebp]
mov eax, dword [edx + 0x28]
push ebx
add esi, 0x44
call eax
mov ecx, dword [esi]
push eax
push ebp
call ecx
mov ecx, dword [esp + 0x30]
add eax, 0x1f400000
adc edx, 0
cmp ecx, edx
ja 0x424977
jb 0x424973
mov edx, dword [esp + 0x2c]
cmp edx, eax
jae 0x424977
mov bl, 1
jmp 0x424979
xor bl, bl
lea ecx, [esp + 0x44]
mov byte [esp + 0x474], 5
call fcn.00411b90
lea ecx, [esp + 0x54]
mov byte [esp + 0x474], 4
call fcn.00411b90
test bl, bl
je 0x424a25
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x6e]
push ecx
mov word [esp + 0x70], ax
call fcn.00432b20
mov edx, dword [0x45e5d0]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x45e5d0
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x64]
push ecx
push 0x200
mov byte [esp + 0x47c], 7
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x64], 0
lea esi, [esp + 0x64]
mov dword [esp + 0x20], esi
jne 0x424ae4
add ebp, 0xfffffff0
mov byte [esp + 0x474], 4
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424a25
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov byte [esp + 0x474], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424a4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 4], 1
jle 0x424a65
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403780
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
push esi
mov ecx, edi
call fcn.00403410
lea eax, [edi - 0x10]
mov byte [esp + 0x474], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424a95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x474], 0xffffffff
mov eax, dword [esp + 0x24]
test eax, eax
je 0x424ab0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.004307df
add esp, 0x464
ret 4
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x424aec
xor eax, eax
jmp 0x424b00
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424af1
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x20]
call fcn.004038a0
mov ebp, dword [esp + 0x1c]
push 0x452400
push ebp
call fcn.00431ed4
add esp, 8
test eax, eax
je 0x424c46
push 0x452408
push ebp
call fcn.00431ed4
add esp, 8
test eax, eax
je 0x424c46
mov ebx, 1
cmp dword [ebp - 4], ebx
jle 0x424b58
mov edx, dword [ebp - 0xc]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00403780
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x424b7d
cmp dword [edi - 0xc], 0
jl 0x424b7d
push ebp
push edi
call fcn.00431fc5
add esp, 8
test eax, eax
je 0x424b7d
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x424c46
cmp dword [ebp - 4], ebx
jle 0x424b94
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403780
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x424c46
cmp dword [ebp - 4], ebx
jle 0x424bbb
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403780
mov ebp, dword [esp + 0x1c]
push 0
push 0
lea edx, [esp + 0x34]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x424c46
lea esi, [esp + 0x44]
call fcn.00410cb0
mov edi, dword [eax]
lea esi, [esp + 0x54]
call fcn.00410cb0
mov byte [esp + 0x474], 9
mov ebx, dword [eax]
mov eax, dword [edi]
mov esi, dword [ebx]
mov ecx, dword [eax + 0x28]
push edi
add esi, 0x44
call ecx
mov edx, dword [esi]
push eax
push ebx
call edx
mov ecx, dword [esp + 0x30]
cmp ecx, edx
jb 0x424c16
ja 0x424c12
mov edx, dword [esp + 0x2c]
cmp edx, eax
jbe 0x424c16
mov bl, 1
jmp 0x424c18
xor bl, bl
lea ecx, [esp + 0x54]
mov byte [esp + 0x474], 8
call fcn.00411b90
lea ecx, [esp + 0x44]
mov byte [esp + 0x474], 7
call fcn.00411b90
test bl, bl
jne 0x424c62
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
cmp word [esi + eax*2 + 2], 0
lea eax, [esi + eax*2 + 2]
mov dword [esp + 0x20], eax
jne 0x424ae0
jmp 0x424a00
lea eax, [esp + 0x1c]
lea edi, [esp + 0x18]
call fcn.00403940
mov esi, dword [esp + 0x18]
cmp dword [esi - 4], 1
jle 0x424c89
mov eax, dword [esi - 0xc]
push eax
mov ecx, edi
push ecx
call fcn.00403780
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00431b55
add esp, 8
test eax, eax
jl 0x424cb8
cmp eax, dword [esi - 8]
jg 0x424cb8
mov edi, dword [esp + 0x18]
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
jmp 0x424a00
push 0x80070057
call fcn.004070e0
int3