Function at 0x407b30
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5370
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4ee318]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x14], 8
jb 0x407b65
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0x40]
call fcn.00407800
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407ea0
cmp eax, 0xffffffff
je 0x407bac
lea ecx, [eax + 1]
cmp dword [ebp - 0x30], ecx
jae 0x407b98
push str.invalid_string_position
call fcn.00432e61
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], ecx
cmovae eax, dword [ebp - 0x40]
xor edx, edx
mov word [eax + ecx*2], dx
sub esp, 8
lea ecx, [ebp - 0x40]
call fcn.00407e20
cmp eax, 0xffffffff
je 0x407bc7
push eax
push 0
lea ecx, [ebp - 0x40]
call fcn.00405150
push 3
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00405d40
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 3
jb 0x407dca
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x98]
push 0
push 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x98], 0
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
mov dword [ebp - 0x94], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x407dca
cmp dword [ebp - 0x94], 0
ja 0x407c35
cmp dword [ebp - 0x98], 0
jbe 0x407dca
push 0xffffffffffffffff
push 3
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00405d40
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004077a0
lea ecx, [ebp - 0x28]
call fcn.00407a30
test al, al
je 0x407c64
xor bl, bl
jmp 0x407d97
push 1
push 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x5c
push eax
lea ecx, [ebp - 0x28]
call fcn.00405d80
mov esi, eax
cmp esi, 0xffffffff
je 0x407d95
lea esp, [esp]
push esi
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405d40
sub esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.00407ea0
cmp eax, 0xffffffff
je 0x407cd3
lea ecx, [eax + 1]
cmp dword [ebp - 0x48], ecx
jb 0x407b8e
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], ecx
cmovae eax, dword [ebp - 0x58]
xor edx, edx
mov word [eax + ecx*2], dx
sub esp, 8
lea ecx, [ebp - 0x58]
call fcn.00407e20
cmp eax, 0xffffffff
je 0x407cee
push eax
push 0
lea ecx, [ebp - 0x58]
call fcn.00405150
cmp dword [ebp - 0x48], 0
je 0x407dbe
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405d40
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x407d44
cmp dword [ebp - 0x14], 8
jb 0x407d27
push dword [ebp - 0x28]
call fcn.0047e7c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404830
cmp dword [ebp - 0x74], 8
jb 0x407d58
push dword [ebp - 0x88]
call fcn.0047e7c0
add esp, 4
push 1
push 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x5c
push eax
lea ecx, [ebp - 0x28]
call fcn.00405d80
mov byte [ebp - 4], 2
mov esi, eax
cmp dword [ebp - 0x44], 8
jb 0x407d8c
push dword [ebp - 0x58]
call fcn.0047e7c0
add esp, 4
cmp esi, 0xffffffff
jne 0x407c90
mov bl, 1
cmp dword [ebp - 0x14], 8
jb 0x407da8
push dword [ebp - 0x28]
call fcn.0047e7c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x407dcc
lea ecx, [ebp - 0x58]
call fcn.00405590
xor bl, bl
jmp 0x407d97
xor bl, bl
cmp dword [ebp - 0x5c], 8
jb 0x407ddd
push dword [ebp - 0x70]
call fcn.0047e7c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x407e02
push dword [ebp - 0x40]
call fcn.0047e7c0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047e7a3
mov esp, ebp
pop ebp
ret