Function at 0x413056
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
push 0x10
call fcn.00446baf
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.00446baf
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.00446baf
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.004493a0
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004479b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 0x5c
push 1
mov ebx, 0x9d4
call fcn.004493a0
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004479b0
add esp, 0x10
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x413190
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4131a0
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4131b4
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x43
push 1
mov ebx, 0x9d4
call fcn.004493a0
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004479b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x413219
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x4bafb4]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x413245
push 0xe5
push 0x402699e
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x413258
push ebx
call fcn.00446bb5
add esp, 4
cmp dword [ebp - 0x28], 3
jne 0x41336e
push 0x80000301
push 0
push 0x43
push 1
mov ebx, 0x9d4
call fcn.004493a0
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004479b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4132c3
push ebx
call fcn.00446bb5
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 0x4132f8
push 0x14c
push 0x402699e
push 6
call fcn.00446bbb
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x413308
push ebx
call fcn.00446bb5
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.00447ec0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x413356
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41336a
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x44
push 1
mov ebx, 0x9d4
call fcn.004493a0
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004479b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4133cf
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x4bafb4]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x4133fb
push 0x23a
push 0x402699e
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41340e
push ebx
call fcn.00446bb5
add esp, 4
cmp dword [ebp - 0x28], 3
jne 0x413524
push 0x80000301
push 0
push 0x44
push 1
mov ebx, 0x9d4
call fcn.004493a0
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004479b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x413479
push ebx
call fcn.00446bb5
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 0x4134ae
push 0x2a1
push 0x402699e
push 6
call fcn.00446bbb
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4134be
push ebx
call fcn.00446bb5
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.00447ec0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41350c
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x413520
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x45
push 1
mov ebx, 0x9d4
call fcn.004493a0
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004479b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x413585
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [0x4bafb4]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x4135b1
push 0x38f
push 0x402699e
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4135c4
push ebx
call fcn.00446bb5
add esp, 4
cmp dword [ebp - 0x28], 3
jne 0x4136da
push 0x80000301
push 0
push 0x45
push 1
mov ebx, 0x9d4
call fcn.004493a0
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004479b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41362f
push ebx
call fcn.00446bb5
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 0x413664
push 0x3f6
push 0x402699e
push 6
call fcn.00446bbb
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x413674
push ebx
call fcn.00446bb5
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.00447ec0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4136c2
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4136d6
push ebx
call fcn.00446bb5
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 0x4136ed
mov eax, 0x479858
push eax
push 1
mov ebx, 0x198
call fcn.00448eb0
add esp, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040a232
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41371f
push ebx
call fcn.00446bb5
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x413746
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x413757
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41378b
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret