Function at 0x402f40
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fe60
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x42b060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edi, ax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x54], edi
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4277ec
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
call fcn.0041fa8e
mulsd xmm0, qword [0x427b70]
mov ecx, 4
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
movsd xmm1, qword [0x427b80]
mulsd xmm0, qword [0x427b70]
comisd xmm1, xmm0
jbe 0x402fed
mov eax, edi
and eax, 0x3ff
push 0x30
cmp cx, ax
jne 0x402fdf
push 0x4277f4
push 0x4277fc
jmp 0x402fe9
push str.Warning
push str.C_disk_space_will_cause_the_software_can_not_be_used_
push 0
call esi
mov bl, 1
call fcn.00402c50
or edi, 0xffffffff
test al, al
jne 0x403002
xor bl, bl
jmp 0x4031fe
mov edx, str.zlib1.dll
lea ecx, [ebp - 0x48]
call fcn.00402710
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
mov dword [ecx + 0x24], eax
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403039
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, 0x427b24
lea ecx, [ebp - 0x50]
call fcn.00402710
mov dword [ebp - 4], 0
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x40306c
xor ecx, ecx
jmp 0x403084
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x48], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403074
sub ecx, dword [ebp - 0x48]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004064f0
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x28]
add ecx, 0x30
mov byte [ebp - 4], 1
cmp ecx, eax
je 0x4030a9
push 0xffffffffffffffff
push 0
push eax
call fcn.004063d0
cmp dword [ebp - 0x14], 8
jb 0x4030ba
push dword [ebp - 0x28]
call fcn.00408e72
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x50]
mov ecx, edi
add edx, 0xfffffff0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4030f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x20
push str.cdf283818fda91abb904873e7125055e
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00406060
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
add ecx, 0x48
mov dword [ebp - 4], 2
cmp ecx, eax
je 0x403130
push 0xffffffffffffffff
push 0
push eax
call fcn.00404dc0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 0x10
jb 0x403148
push dword [ebp - 0x40]
call fcn.00408e72
add esp, 4
lea ecx, [ebp - 0x6c]
call fcn.00402b60
mov ecx, dword [ebp - 0x44]
push eax
mov dword [ebp - 4], 3
lea ecx, [ecx + 0x2c]
call fcn.004020a0
test al, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
sete bh
test eax, eax
je 0x40317f
push eax
call fcn.00408e72
add esp, 4
test bh, bh
je 0x403187
xor bl, bl
jmp 0x4031f5
mov edx, str.AndroidAssistHelper.dll
lea ecx, [ebp - 0x50]
call fcn.00402710
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov dword [ecx + 0x28], eax
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4031be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, str.RootGenius.dll
lea ecx, [ebp - 0x58]
call fcn.00402710
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov dword [ecx + 0x20], eax
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4031f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00402d60
test bl, bl
jne 0x40322c
mov eax, dword [ebp - 0x54]
mov ecx, 4
and eax, 0x3ff
push 0x30
cmp cx, ax
jne 0x40321e
push 0x427910
push str.Root
jmp 0x403228
push str.Error
push str.Root_Genius_failed_to_initialize_
push 0
call esi
mov edx, str.DataTextAuthList
lea ecx, [ebp - 0x4c]
call fcn.00402710
push dword [ebp - 0x4c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403253
lea edx, [ebp - 0x4c]
mov ecx, 0xcc
call fcn.00402ac0
mov esi, dword [ebp - 0x4c]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40326d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408e77
mov esp, ebp
pop ebp
ret