Function at 0x40d117
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
push 0x10
call fcn.004b919a
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.004b919a
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.004b919a
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.004ba880
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ba930
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 0x5c
push 1
mov ebx, 0x9d4
call fcn.004ba880
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ba930
add esp, 0x10
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d251
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d261
push ebx
call fcn.004b91a0
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d275
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x43
push 1
mov ebx, 0x9d4
call fcn.004ba880
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ba930
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d2da
push ebx
call fcn.004b91a0
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x4d265e]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40d306
push 0xe5
push 0x4037280
push 6
call fcn.004b91a6
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d319
push ebx
call fcn.004b91a0
add esp, 4
cmp dword [ebp - 0x28], 3
jne 0x40d42f
push 0x80000301
push 0
push 0x43
push 1
mov ebx, 0x9d4
call fcn.004ba880
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ba930
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d384
push ebx
call fcn.004b91a0
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 0x40d3b9
push 0x14c
push 0x4037280
push 6
call fcn.004b91a6
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d3c9
push ebx
call fcn.004b91a0
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.004b9f30
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d417
push ebx
call fcn.004b91a0
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40d42b
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x44
push 1
mov ebx, 0x9d4
call fcn.004ba880
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ba930
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d490
push ebx
call fcn.004b91a0
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x4d265e]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40d4bc
push 0x24d
push 0x4037280
push 6
call fcn.004b91a6
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d4cf
push ebx
call fcn.004b91a0
add esp, 4
cmp dword [ebp - 0x28], 3
jne 0x40d5e5
push 0x80000301
push 0
push 0x44
push 1
mov ebx, 0x9d4
call fcn.004ba880
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ba930
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d53a
push ebx
call fcn.004b91a0
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 0x40d56f
push 0x2b4
push 0x4037280
push 6
call fcn.004b91a6
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d57f
push ebx
call fcn.004b91a0
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.004b9f30
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d5cd
push ebx
call fcn.004b91a0
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40d5e1
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x45
push 1
mov ebx, 0x9d4
call fcn.004ba880
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ba930
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d646
push ebx
call fcn.004b91a0
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x4d265e]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40d672
push 0x3b5
push 0x4037280
push 6
call fcn.004b91a6
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d685
push ebx
call fcn.004b91a0
add esp, 4
cmp dword [ebp - 0x28], 3
jne 0x40d79b
push 0x80000301
push 0
push 0x45
push 1
mov ebx, 0x9d4
call fcn.004ba880
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004ba930
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d6f0
push ebx
call fcn.004b91a0
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 0x40d725
push 0x41c
push 0x4037280
push 6
call fcn.004b91a6
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d735
push ebx
call fcn.004b91a0
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.004b9f30
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d783
push ebx
call fcn.004b91a0
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40d797
push ebx
call fcn.004b91a0
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 0x40d7ae
mov eax, 0x4ca20b
push eax
push 1
mov ebx, 0x198
call fcn.004bb0a0
add esp, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404a61
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d7e0
push ebx
call fcn.004b91a0
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004b9f30
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x40d807
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d818
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40d84c
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret