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

Disassembly:
push 0xa8
mov eax, 0x105f07c
call fcn.0104f396
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, 0x10050c0
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x28], ebx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
cmp ecx, ebx
jne 0x1035d87
push 0x1005080
push 0x1005064
mov eax, 0x80070057
push eax
mov dword [ebp - 0x28], eax
call fcn.0104a504
add esp, 0xc
jmp 0x103639d
cmp edx, ebx
jne 0x1035d97
push 0x1005020
push 0x1005008
jmp 0x1035d71
cmp eax, ebx
jne 0x1035da7
push 0x1004fc0
push 0x1004fa4
jmp 0x1035d71
xor eax, eax
lea edi, [ebp - 0x8c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x60]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [0x1068828], ebx
jne 0x1035ddd
push 0x1004f48
mov eax, 0x80004005
push 0x1004f30
jmp 0x1035d76
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
push ebx
mov byte [ebp - 4], 2
call esi
cmp eax, ebx
jne 0x1035e40
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x1035e0e
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x1035e1c
mov dword [ebp - 0x28], 0x80004005
push 0x10048f0
push 0x1004f18
call esi
push eax
call fcn.0104a5f6
add esp, 0xc
push ebx
mov byte [ebp - 4], bl
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x103639d
lea edi, [eax + 1]
push edi
lea ecx, [ebp - 0x30]
call fcn.01033f0f
movzx eax, al
cmp eax, ebx
jne 0x1035e73
push 0x10048b8
mov eax, 0x8007000e
push 0x1004f00
push eax
mov dword [ebp - 0x28], eax
call fcn.0104a504
add esp, 0xc
push dword [ebp - 0x30]
jmp 0x1035e32
push edi
mov edi, dword [ebp - 0x30]
push edi
call esi
cmp eax, ebx
jne 0x1035ebd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x1035e94
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x1035ea2
mov dword [ebp - 0x28], 0x80004005
push 0x1004868
push 0x1004ee8
call esi
push eax
call fcn.0104a5f6
add esp, 0xc
push edi
jmp 0x1035e32
movzx eax, word [edi]
push eax
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
push ebx
mov word [ebp - 0x1c], ax
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp eax, ebx
jne 0x1035f14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x1035efa
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x1035f08
mov dword [ebp - 0x28], 0x80004005
push 0x1004e90
push 0x1004e74
jmp 0x1035eac
push ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, ebx
jne 0x1035f5b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x1035f3e
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x1035f4c
mov dword [ebp - 0x28], 0x80004005
push 0x1004e18
push 0x1004dfc
jmp 0x1035eac
mov edi, dword [ebp - 0x5c]
imul edi, dword [ebp - 0x48]
xor eax, eax
push eax
push edi
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
call fcn.0104f720
push edx
push eax
push dword [ebp - 0x5c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x48]
mov esi, 0x1002678
push eax
push esi
push 0x1004d98
push 0x4000000
call fcn.0104a7da
xor eax, eax
add esp, 0x20
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x1004d70
push 0x4000000
call fcn.0104a7da
add esp, 0x10
push 0xffffffffffffffff
push 0x80
push 3
push ebx
push 3
push 0xc0000000
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, ebx
je 0x1036309
cmp esi, 0xffffffff
je 0x1036309
push ebx
lea eax, [ebp - 0x4c]
push eax
push 8
lea eax, [ebp - 0x8c]
push eax
push ebx
push ebx
push 0x7405c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
jne 0x1036049
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x1036019
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x1036027
mov dword [ebp - 0x28], 0x80004005
push 0x1004d18
push 0x1004cfc
call esi
push eax
call fcn.0104a5f6
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.010303b2
jmp 0x1035e6e
push 0
pop eax
mov ecx, edi
add ecx, dword [ebp - 0x8c]
mov edx, eax
adc edx, dword [ebp - 0x88]
push eax
sub ecx, 1
push edi
sbb edx, ebx
push edx
push ecx
call fcn.0104f670
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x1000
push ebx
mov dword [ebp - 0x6c], eax
call esi
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x10360d2
push 0x1000
push 0x1002678
push 0x1004cc4
push 0x2000000
call fcn.0104a7da
add esp, 0x10
push 0x1004cb4
push 0x1004c9c
mov eax, 0x8007000e
push eax
mov dword [ebp - 0x28], eax
call fcn.0104a504
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.010303b2
push dword [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x1036381
push 0x1010
push ebx
call esi
mov dword [ebp - 0x40], eax
cmp eax, ebx
jne 0x1036109
push 0x1010
push 0x1002678
push 0x1004c68
push 0x2000000
call fcn.0104a7da
add esp, 0x10
push 0x1004c50
push 0x1004c38
jmp 0x10360a8
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x9c], 0x8000
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x68], ebx
xor esi, esi
cmp esi, ebx
ja 0x10362d4
jb 0x1036146
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x68], eax
jae 0x10362d4
mov ecx, dword [ebp - 0x50]
mov eax, 0x8000
mov dword [ebp - 0x44], ecx
cmp ecx, eax
jb 0x1036158
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x68]
push ebx
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x1010
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0xa8]
push 8
push eax
push 0x9006f
push dword [ebp - 0x2c]
mov dword [ebp - 0xa4], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
jne 0x10361fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x10361fe
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x1002678
push 0x1004c10
push 0x2000000
call fcn.0104a7da
add esp, 0x10
call esi
cmp eax, ebx
jle 0x10361cd
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x10361db
mov dword [ebp - 0x28], 0x80004005
push 0x1004bdc
push 0x1004bc4
call esi
push eax
call fcn.0104a5f6
add esp, 0xc
cmp dword [ebp - 0x2c], ebx
je 0x10360c1
jmp 0x10360b9
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
add eax, 0x10
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov eax, dword [ebp - 0x68]
push ebx
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x1000
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0xa0]
push 0x10
push eax
push 0x564052
push dword [ebp - 0x2c]
mov dword [ebp - 0x94], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_RtlNumberOfClearBits]
xor ecx, ecx
push ecx
push edi
push ebx
push eax
call fcn.0104f630
add dword [ebp - 0x58], eax
adc dword [ebp - 0x54], edx
cmp dword [ebp - 0x80], ebx
je 0x10362bc
push dword [ebp - 0x44]
lea eax, [ebp - 0xb4]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeBitMap]
cmp edi, 0x4000
jae 0x1036297
xor edx, edx
mov eax, 0x4000
div edi
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0103571d
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0103576b
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_RtlNumberOfClearBits]
xor ecx, ecx
push ecx
push edi
push ebx
push eax
call fcn.0104f630
add dword [ebp - 0x3c], eax
mov eax, 0x8000
adc dword [ebp - 0x38], edx
add dword [ebp - 0x68], eax
adc esi, ebx
sub dword [ebp - 0x50], eax
jmp 0x1036130
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x78]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 4], ecx
jmp 0x10361f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, ebx
jle 0x103631f
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x103632d
mov dword [ebp - 0x28], 0x80004005
lea eax, [ebp - 0x24]
push eax
push 0x100477c
push 0x1004bac
call edi
push eax
call fcn.0104a5f6
add esp, 0x10
cmp esi, ebx
je 0x1035e6e
jmp 0x103603c
cmp dword [ebp - 0x34], ebx
je 0x103638f
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x40], ebx
je 0x103639d
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.0104f401
ret 0xc