Function at 0x4279c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559cac
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5be984]
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
lea eax, [ebp - 0x28]
push eax
push 1
push 0x5c01ec
push 0x5c01cc
push 0
call fcn.004237d0
push eax
call fcn.004f1375
add esp, 0x14
mov ecx, eax
call fcn.00438440
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0049e550
add esp, 8
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x80]
push 0
push 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x427dd4
mov ebx, dword [ebp - 0x7c]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x80]
add edi, 0xa00000
mov dword [ebp - 0x78], ebx
mov ebx, dword [ebp + 0xc]
adc ebx, 0
mov dword [ebp - 0x74], eax
cmp dword [0x5bd52c], 3
jl 0x427aea
call fcn.00419fd0
cmp dword [eax], 0
je 0x427ae7
push 0xa0
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea ecx, [ebp - 0x120]
call fcn.00413ec0
push 0x5758d4
push 0
push 3
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00416ef0
mov ecx, eax
call fcn.00415300
push dword [ebp - 0x78]
mov esi, eax
push dword [ebp - 0x74]
lea ecx, [esi + 8]
call fcn.004270b0
push 0x5758e8
mov ecx, esi
call fcn.00415300
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.00414710
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x78], ebx
jg 0x427bfb
jl 0x427afd
cmp eax, edi
jae 0x427bfb
cmp dword [0x5bd52c], 1
jl 0x427b73
call fcn.00419fd0
cmp dword [eax], 0
je 0x427b73
push 0xa0
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea ecx, [ebp - 0x120]
call fcn.00413ec0
push 0x5758ec
push 0
push 1
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00416ef0
mov ecx, eax
call fcn.00415300
mov esi, eax
push ebx
push edi
lea ecx, [esi + 8]
call fcn.004270b0
push 0x5758e8
mov ecx, esi
call fcn.00415300
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.00414710
xor eax, eax
mov dword [ebp - 0x48], 0
push eax
push 0x572268
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004048f0
push 9
xor eax, eax
mov byte [ebp - 4], 4
push 0x57590c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004048f0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
push 1
push 0x5c0214
push 0x5c01cc
push 0
call fcn.00423860
push eax
call fcn.004f1375
add esp, 0x14
mov ecx, eax
call fcn.00447fd0
lea ecx, [ebp - 0x40]
call fcn.004029d0
lea ecx, [ebp - 0x58]
jmp 0x427e57
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
lea eax, [ebp - 0x28]
push eax
sete bl
call fcn.0049e910
add esp, 4
test al, al
jne 0x427cb6
cmp dword [0x5bd52c], 1
jl 0x427c8f
call fcn.00419fd0
cmp dword [eax], 0
je 0x427c8f
push 0xa0
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea ecx, [ebp - 0x120]
call fcn.00413ec0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
push ecx
push 0x575920
push 0
push 1
mov ecx, eax
call fcn.00416ef0
mov ecx, eax
call fcn.00415300
mov ecx, eax
call fcn.00412770
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.00414710
push 0x572268
lea ecx, [ebp - 0x40]
call fcn.00402910
push 0x575940
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.00402910
mov byte [ebp - 4], 8
jmp 0x427d74
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x427ce9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x427ce9
mov bl, 1
jmp 0x427e5e
cmp dword [0x5bd52c], 1
jl 0x427d52
call fcn.00419fd0
cmp dword [eax], 0
je 0x427d52
push 0xa0
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea ecx, [ebp - 0x120]
call fcn.00413ec0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
push ecx
push 0x575954
push 0
push 1
mov ecx, eax
call fcn.00416ef0
mov ecx, eax
call fcn.00415300
mov ecx, eax
call fcn.00412770
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.00414710
push 0x572268
lea ecx, [ebp - 0x40]
call fcn.00402910
push 0x575974
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00402910
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
push 1
push 0x5c0214
push 0x5c01cc
push 0
call fcn.00423860
push eax
call fcn.004f1375
add esp, 0x14
mov ecx, eax
call fcn.00447fd0
lea ecx, [ebp - 0x58]
call fcn.004029d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004029d0
test bl, bl
je 0x427e5c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0049f600
add esp, 4
jmp 0x427e5c
xor eax, eax
mov dword [ebp - 0x30], 0
push eax
push 0x572268
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004048f0
push 8
xor eax, eax
mov byte [ebp - 4], 0xc
push 0x57598c
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004048f0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x58]
push eax
push 1
push 0x5c0214
push 0x5c01cc
push 0
call fcn.00423860
push eax
call fcn.004f1375
add esp, 0x14
mov ecx, eax
call fcn.00447fd0
lea ecx, [ebp - 0x58]
call fcn.004029d0
lea ecx, [ebp - 0x40]
call fcn.004029d0
xor bl, bl
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x427e94
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427e8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427efc
push edx
push ecx
call fcn.004845fc
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x427ede
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427ed4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427f01
push edx
push ecx
call fcn.004845fc
add esp, 8
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.00484a0d
mov esp, ebp
pop ebp
ret
call fcn.004faed4
call fcn.004faed4
int3