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

Disassembly:
push 0xffffffffffffffff
push 0x54a3a4
mov eax, dword fs:[0]
push eax
mov eax, 0x12d8
call fcn.00526eb0
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x12d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5af640]
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 0x403861
push ebx
push 0x5883d0
push 0x5883dc
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x1314], 8
jb 0x403857
mov eax, dword [esp + 0x1300]
push eax
call fcn.004508d0
add esp, 4
mov eax, 1
jmp 0x403df5
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.00409b40
cmp eax, ebx
je 0x4038cf
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4038ab
push eax
call fcn.00524163
add esp, 4
cmp dword [esp + 0x1314], 8
jb 0x4038c5
mov ecx, dword [esp + 0x1300]
push ecx
call fcn.004508d0
add esp, 4
mov eax, 2
jmp 0x403df5
lea edx, [esp + 0x40]
push edx
call fcn.0040a2f0
mov byte [esp + 0x12f4], 2
cmp dword [esp + 0x1314], 8
mov eax, dword [esp + 0x1300]
jae 0x4038f9
lea eax, [esp + 0x1300]
push eax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x18]
call fcn.00409c10
test eax, eax
je 0x403d83
mov esi, dword [esp + 0x1314]
mov edi, dword [esp + 0x1300]
mov ecx, edi
cmp esi, 8
jae 0x40392b
lea ecx, [esp + 0x1300]
mov eax, dword [esp + 0x44]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403956
cmp dx, bx
je 0x403952
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403956
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x403930
xor eax, eax
jmp 0x40395b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403d83
push 0x206
lea ecx, [esp + 0xc6]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xcc], ax
call fcn.00523080
push 0x7fe
lea eax, [esp + 0xafa]
xor edx, edx
push ebx
push eax
mov word [esp + 0xb00], dx
call fcn.00523080
push 0x206
lea edx, [esp + 0x8fe]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x904], cx
call fcn.00523080
push 0x206
lea ecx, [esp + 0x702]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x708], ax
call fcn.00523080
add esp, 0x30
mov eax, edi
cmp esi, 8
jae 0x4039e8
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.00527978
mov eax, dword [esp + 0xd4]
add esp, 0x14
call fcn.00403e70
push ebx
test al, al
jne 0x403a63
push 0x5883d0
push 0x588454
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x40]
call fcn.00403e30
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403a4d
push eax
call fcn.00524163
add esp, 4
lea ecx, [esp + 0x12fc]
call fcn.0041f620
mov eax, 4
jmp 0x403df5
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 0x403b0e
jg 0x403a8f
cmp edi, dword [esp + 0x38]
jbe 0x403b0e
push 0x206
lea edx, [esp + 0x4d6]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x4dc], cx
call fcn.00523080
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x4e0]
push 0x588464
push ecx
call fcn.00523131
add esp, 0x18
push ebx
push 0x5883d0
lea edx, [esp + 0x4d8]
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x40]
call fcn.00403e30
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403af8
push eax
call fcn.00524163
add esp, 4
lea ecx, [esp + 0x12fc]
call fcn.0041f620
mov eax, 5
jmp 0x403df5
mov eax, dword [esp + 0x1310]
cmp eax, 2
je 0x403d44
cmp eax, 3
je 0x403d44
push 0x206
lea ecx, [esp + 0x2ce]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x2d4], ax
call fcn.00523080
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.004091f0
lea ebx, [esp + 0x70]
lea edi, [esp + 0x88]
mov byte [esp + 0x12f4], 3
call fcn.00409290
lea ebx, [esp + 0x68]
mov esi, eax
call fcn.004092e0
lea ebx, [esp + 0x80]
mov ebp, eax
call fcn.00409290
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.00410120
add esp, 0x18
lea eax, [esp + 0x12fc]
push eax
lea ecx, [esp + 0xa8]
call fcn.00409230
lea ebx, [esp + 0x78]
lea edi, [esp + 0xa4]
mov byte [esp + 0x12f4], 4
call fcn.00409290
lea ebx, [esp + 0x80]
mov esi, eax
call fcn.004092e0
lea ebx, [esp + 0x68]
mov ebp, eax
call fcn.00409290
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.00410120
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xb4]
add esp, 0x18
cmp eax, ecx
jb 0x403c41
mov eax, ecx
mov ecx, dword [esp + 0x8c]
mov esi, 8
cmp dword [esp + 0xa0], esi
jae 0x403c5d
lea ecx, [esp + 0x8c]
mov edx, dword [esp + 0xa8]
cmp dword [esp + 0xbc], esi
jae 0x403c74
lea edx, [esp + 0xa8]
dec eax
push eax
push ecx
push edx
call fcn.00527194
add esp, 0xc
test eax, eax
jne 0x403cde
push eax
push 0x5883d0
push 0x588498
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0xa4]
call fcn.0041f620
lea ecx, [esp + 0x88]
call fcn.0041f620
lea esi, [esp + 0x40]
call fcn.00403e30
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403cc8
push eax
call fcn.00524163
add esp, 4
lea ecx, [esp + 0x12fc]
call fcn.0041f620
mov eax, 7
jmp 0x403df5
mov eax, dword [esp + 0x1300]
cmp dword [esp + 0x1314], esi
jae 0x403cf5
lea eax, [esp + 0x1300]
mov ecx, dword [esp + 0x34]
push eax
call fcn.00403630
lea ecx, [esp + 0xa4]
call fcn.0041f620
lea ecx, [esp + 0x88]
call fcn.0041f620
lea esi, [esp + 0x40]
call fcn.00403e30
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403d31
push eax
call fcn.00524163
add esp, 4
lea ecx, [esp + 0x12fc]
call fcn.0041f620
xor eax, eax
jmp 0x403df5
push ebx
push 0x5883d0
push 0x588484
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x40]
call fcn.00403e30
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403d70
push eax
call fcn.00524163
add esp, 4
lea ecx, [esp + 0x12fc]
call fcn.0041f620
mov eax, 6
jmp 0x403df5
push ebx
push 0x5883d0
push 0x588444
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x403da6
push eax
call fcn.00524163
add esp, 4
mov eax, dword [esp + 0x50]
push eax
call fcn.004508d0
mov ecx, dword [esp + 0x50]
push ecx
mov dword [esp + 0x58], ebx
call fcn.004508d0
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x403dd6
push eax
call fcn.00524163
add esp, 4
cmp dword [esp + 0x1314], 8
jb 0x403df0
mov edx, dword [esp + 0x1300]
push edx
call fcn.004508d0
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.00522f5c
add esp, 0x12e4
ret 0x1c