Function at 0x4028b0
Capabilities:
Get common file path
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x43b086
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x780
mov eax, dword [0x44b754]
xor eax, esp
mov dword [esp + 0x77c], eax
mov eax, dword [esp + 0x790]
test eax, eax
push edi
mov edi, ecx
jne 0x4028ee
xor al, al
jmp 0x402b60
push esi
push eax
lea ecx, [esp + 0x3c]
call fcn.00416b50
push 0x2f
lea ecx, [esp + 0x3c]
mov dword [esp + 0x794], 0
call fcn.00416a20
push 0x5c
lea ecx, [esp + 0x3c]
call fcn.00416a20
lea ecx, [esp + 0x38]
call fcn.00416ac0
mov esi, eax
test esi, esi
jne 0x402944
lea ecx, [esp + 0x38]
mov dword [esp + 0x790], 0xffffffff
call fcn.004169b0
xor al, al
jmp 0x402b5f
push ebx
push 0x400
lea eax, [esp + 0x38c]
push eax
push 0x18
mov ecx, edi
call fcn.004014d0
push eax
call fcn.0042c795
mov ebx, eax
mov eax, dword [edi + 0x110c]
add esp, 4
cmp eax, 2
jne 0x402b1d
lea ecx, [esp + 0x284]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x284]
push edx
lea ecx, [esp + 0x60]
call fcn.00416b50
push 0x2f
lea ecx, [esp + 0x60]
mov byte [esp + 0x798], 1
call fcn.00416a20
push 0x5c
lea ecx, [esp + 0x60]
call fcn.00416a20
lea ecx, [esp + 0x5c]
call fcn.00416ac0
mov edi, eax
test edi, edi
jne 0x4029f2
lea ecx, [esp + 0x5c]
mov byte [esp + 0x794], 0
call fcn.004169b0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x794], 0xffffffff
call fcn.004169b0
xor al, al
jmp 0x402b5e
lea edx, [esp + 0x7c]
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402a00
lea edx, [esp + 0x180]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402a15
lea eax, [esp + 0x7c]
push eax
call fcn.0042c348
lea ecx, [esp + 0x184]
push ecx
call fcn.0042c348
lea edx, [esp + 0x188]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.0042c169
add esp, 0x10
test eax, eax
mov dword [esp + 0xc], 0
jne 0x402a9d
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
lea edi, [ebx + ebx]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
shr eax, 0x14
shl edx, 0xc
add eax, edx
cmp eax, edi
jmp 0x402b07
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
call edi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
shr eax, 0x14
shl ecx, 0xc
add eax, ecx
cmp eax, ebx
jl 0x4029c6
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
shr eax, 0x14
shl edx, 0xc
add eax, edx
cmp eax, ebx
lea ecx, [esp + 0x5c]
setg bl
mov byte [esp + 0x794], 0
call fcn.004169b0
jmp 0x402b48
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
shr eax, 0x14
shl ecx, 0xc
add eax, ecx
cmp eax, ebx
setg bl
lea ecx, [esp + 0x3c]
mov dword [esp + 0x794], 0xffffffff
call fcn.004169b0
mov al, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x784]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x780]
pop edi
xor ecx, esp
call fcn.0042baa4
add esp, 0x78c
ret 4