Function at 0x40c087
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
push 0x10
call fcn.004a95c1
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x10
call fcn.004a95c1
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x10
call fcn.004a95c1
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
push 0x80000301
push 0
push 0x3a
push 1
mov ebx, 0x9d4
call fcn.004ac550
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ac600
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 0x5c
push 1
mov ebx, 0x9d4
call fcn.004ac550
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ac600
add esp, 0x10
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c1c1
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40c1d1
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c1e5
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x43
push 1
mov ebx, 0x9d4
call fcn.004ac550
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ac600
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c24a
push ebx
call fcn.004a95c7
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x4c2a3b]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40c276
push 0xe5
push 0x4026d56
push 6
call fcn.004a95cd
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40c289
push ebx
call fcn.004a95c7
add esp, 4
cmp dword [ebp - 0x28], 3
jne 0x40c39f
push 0x80000301
push 0
push 0x43
push 1
mov ebx, 0x9d4
call fcn.004ac550
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ac600
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c2f4
push ebx
call fcn.004a95c7
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40c329
push 0x14c
push 0x4026d56
push 6
call fcn.004a95cd
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40c339
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
push 0x80000401
mov ebx, dword [ebp - 0x18]
push dword [ebx + 4]
push dword [ebx]
push 1
mov ebx, 0x168
call fcn.004aaae0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c387
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c39b
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x44
push 1
mov ebx, 0x9d4
call fcn.004ac550
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ac600
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c400
push ebx
call fcn.004a95c7
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x4c2a3b]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40c42c
push 0x24d
push 0x4026d56
push 6
call fcn.004a95cd
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40c43f
push ebx
call fcn.004a95c7
add esp, 4
cmp dword [ebp - 0x28], 3
jne 0x40c555
push 0x80000301
push 0
push 0x44
push 1
mov ebx, 0x9d4
call fcn.004ac550
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ac600
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c4aa
push ebx
call fcn.004a95c7
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40c4df
push 0x2b4
push 0x4026d56
push 6
call fcn.004a95cd
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40c4ef
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
push 0x80000401
mov ebx, dword [ebp - 0x18]
push dword [ebx + 4]
push dword [ebx]
push 1
mov ebx, 0x168
call fcn.004aaae0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c53d
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c551
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x45
push 1
mov ebx, 0x9d4
call fcn.004ac550
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ac600
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c5b6
push ebx
call fcn.004a95c7
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x4c2a3b]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40c5e2
push 0x3b5
push 0x4026d56
push 6
call fcn.004a95cd
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40c5f5
push ebx
call fcn.004a95c7
add esp, 4
cmp dword [ebp - 0x28], 3
jne 0x40c70b
push 0x80000301
push 0
push 0x45
push 1
mov ebx, 0x9d4
call fcn.004ac550
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ac600
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c660
push ebx
call fcn.004a95c7
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40c695
push 0x41c
push 0x4026d56
push 6
call fcn.004a95cd
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40c6a5
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
push 0x80000401
mov ebx, dword [ebp - 0x18]
push dword [ebx + 4]
push dword [ebx]
push 1
mov ebx, 0x168
call fcn.004aaae0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040185d
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40c6f3
push ebx
call fcn.004a95c7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c707
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40c71e
mov eax, 0x4bb3e2
push eax
push 1
mov ebx, 0x198
call fcn.004ab2a0
add esp, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004039d1
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c750
push ebx
call fcn.004a95c7
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004aaae0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x40c777
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c788
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004a95c7
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c7bc
push ebx
call fcn.004a95c7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret