Function at 0x4035c0
Capabilities:
Get common file path
Get disk size
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x54b154
mov eax, dword fs:[0]
push eax
mov eax, 0x12d8
call fcn.00527b90
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x12d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0x12ec]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x34], ebp
xor ebx, ebx
mov dword [esp + 0x12f4], ebx
cmp dword [esp + 0x1310], 0x96
jb 0x403651
push ebx
push 0x5892b4
push 0x5892c0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x1314], 8
jb 0x403647
mov eax, dword [esp + 0x1300]
push eax
call fcn.00450c25
add esp, 4
mov eax, 1
jmp 0x403be5
mov eax, 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x12f4], al
lea eax, [esp + 0x14]
call fcn.00409490
cmp eax, ebx
je 0x4036bf
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40369b
push eax
call fcn.00524e33
add esp, 4
cmp dword [esp + 0x1314], 8
jb 0x4036b5
mov ecx, dword [esp + 0x1300]
push ecx
call fcn.00450c25
add esp, 4
mov eax, 2
jmp 0x403be5
lea edx, [esp + 0x40]
push edx
call fcn.00409c40
mov byte [esp + 0x12f4], 2
cmp dword [esp + 0x1314], 8
mov eax, dword [esp + 0x1300]
jae 0x4036e9
lea eax, [esp + 0x1300]
push eax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x18]
call fcn.00409560
test eax, eax
je 0x403b73
mov esi, dword [esp + 0x1314]
mov edi, dword [esp + 0x1300]
mov ecx, edi
cmp esi, 8
jae 0x40371b
lea ecx, [esp + 0x1300]
mov eax, dword [esp + 0x44]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403746
cmp dx, bx
je 0x403742
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403746
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x403720
xor eax, eax
jmp 0x40374b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403b73
push 0x206
lea ecx, [esp + 0xc6]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xcc], ax
call fcn.00523d50
push 0x7fe
lea eax, [esp + 0xafa]
xor edx, edx
push ebx
push eax
mov word [esp + 0xb00], dx
call fcn.00523d50
push 0x206
lea edx, [esp + 0x8fe]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x904], cx
call fcn.00523d50
push 0x206
lea ecx, [esp + 0x702]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x708], ax
call fcn.00523d50
add esp, 0x30
mov eax, edi
cmp esi, 8
jae 0x4037d8
lea eax, [esp + 0x1300]
lea edx, [esp + 0x6d8]
push edx
lea ecx, [esp + 0x8e4]
push ecx
lea edx, [esp + 0xaf0]
push edx
lea ecx, [esp + 0xcc]
push ecx
push eax
call fcn.005295e1
mov eax, dword [esp + 0xd4]
add esp, 0x14
call fcn.00403c60
push ebx
test al, al
jne 0x403853
push 0x5892b4
push 0x589334
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x40]
call fcn.00403c20
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40383d
push eax
call fcn.00524e33
add esp, 4
lea ecx, [esp + 0x12fc]
call fcn.00421050
mov eax, 4
jmp 0x403be5
mov edi, dword [ebp + 0x78]
mov esi, dword [ebp + 0x7c]
push ebx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp esi, dword [esp + 0x3c]
jl 0x4038fe
jg 0x40387f
cmp edi, dword [esp + 0x38]
jbe 0x4038fe
push 0x206
lea edx, [esp + 0x4d6]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x4dc], cx
call fcn.00523d50
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x4e0]
push 0x589344
push ecx
call fcn.00523e01
add esp, 0x18
push ebx
push 0x5892b4
lea edx, [esp + 0x4d8]
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x40]
call fcn.00403c20
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4038e8
push eax
call fcn.00524e33
add esp, 4
lea ecx, [esp + 0x12fc]
call fcn.00421050
mov eax, 5
jmp 0x403be5
mov eax, dword [esp + 0x1310]
cmp eax, 2
je 0x403b34
cmp eax, 3
je 0x403b34
push 0x206
lea ecx, [esp + 0x2ce]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x2d4], ax
call fcn.00523d50
add esp, 0xc
push ebx
push 0x10
lea edx, [esp + 0x2d0]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x2c8]
push eax
lea ecx, [esp + 0x8c]
call fcn.00408b80
lea ebx, [esp + 0x70]
lea edi, [esp + 0x88]
mov byte [esp + 0x12f4], 3
call fcn.00408c20
lea ebx, [esp + 0x68]
mov esi, eax
call fcn.00408c70
lea ebx, [esp + 0x80]
mov ebp, eax
call fcn.00408c20
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea esi, [esp + 0x90]
call fcn.0040fb10
add esp, 0x18
lea eax, [esp + 0x12fc]
push eax
lea ecx, [esp + 0xa8]
call fcn.00408bc0
lea ebx, [esp + 0x78]
lea edi, [esp + 0xa4]
mov byte [esp + 0x12f4], 4
call fcn.00408c20
lea ebx, [esp + 0x80]
mov esi, eax
call fcn.00408c70
lea ebx, [esp + 0x68]
mov ebp, eax
call fcn.00408c20
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea esi, [esp + 0x88]
call fcn.0040fb10
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xb4]
add esp, 0x18
cmp eax, ecx
jb 0x403a31
mov eax, ecx
mov ecx, dword [esp + 0x8c]
mov esi, 8
cmp dword [esp + 0xa0], esi
jae 0x403a4d
lea ecx, [esp + 0x8c]
mov edx, dword [esp + 0xa8]
cmp dword [esp + 0xbc], esi
jae 0x403a64
lea edx, [esp + 0xa8]
dec eax
push eax
push ecx
push edx
call fcn.00528311
add esp, 0xc
test eax, eax
jne 0x403ace
push eax
push 0x5892b4
push 0x589378
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0xa4]
call fcn.00421050
lea ecx, [esp + 0x88]
call fcn.00421050
lea esi, [esp + 0x40]
call fcn.00403c20
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403ab8
push eax
call fcn.00524e33
add esp, 4
lea ecx, [esp + 0x12fc]
call fcn.00421050
mov eax, 7
jmp 0x403be5
mov eax, dword [esp + 0x1300]
cmp dword [esp + 0x1314], esi
jae 0x403ae5
lea eax, [esp + 0x1300]
mov ecx, dword [esp + 0x34]
push eax
call fcn.00403420
lea ecx, [esp + 0xa4]
call fcn.00421050
lea ecx, [esp + 0x88]
call fcn.00421050
lea esi, [esp + 0x40]
call fcn.00403c20
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403b21
push eax
call fcn.00524e33
add esp, 4
lea ecx, [esp + 0x12fc]
call fcn.00421050
xor eax, eax
jmp 0x403be5
push ebx
push 0x5892b4
push 0x589364
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x40]
call fcn.00403c20
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403b60
push eax
call fcn.00524e33
add esp, 4
lea ecx, [esp + 0x12fc]
call fcn.00421050
mov eax, 6
jmp 0x403be5
push ebx
push 0x5892b4
push 0x589324
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x403b96
push eax
call fcn.00524e33
add esp, 4
mov eax, dword [esp + 0x50]
push eax
call fcn.00450c25
mov ecx, dword [esp + 0x50]
push ecx
mov dword [esp + 0x58], ebx
call fcn.00450c25
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x403bc6
push eax
call fcn.00524e33
add esp, 4
cmp dword [esp + 0x1314], 8
jb 0x403be0
mov edx, dword [esp + 0x1300]
push edx
call fcn.00450c25
add esp, 4
mov eax, 3
mov ecx, dword [esp + 0x12ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12d4]
xor ecx, esp
call fcn.00523c2c
add esp, 0x12e4
ret 0x1c