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

Disassembly:
push 0xa8
mov eax, 0x105d95c
call fcn.0104dd12
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, 0x10050b0
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 0x1035393
push 0x1005070
push 0x1005054
mov eax, 0x80070057
push eax
mov dword [ebp - 0x28], eax
call fcn.01048c52
add esp, 0xc
jmp 0x10359a9
cmp edx, ebx
jne 0x10353a3
push 0x1005010
push 0x1004ff8
jmp 0x103537d
cmp eax, ebx
jne 0x10353b3
push 0x1004fb0
push 0x1004f94
jmp 0x103537d
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 [0x106681c], ebx
jne 0x10353e9
push 0x1004f38
mov eax, 0x80004005
push 0x1004f20
jmp 0x1035382
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 0x103544c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x103541a
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x1035428
mov dword [ebp - 0x28], 0x80004005
push 0x10048e0
push 0x1004f08
call esi
push eax
call fcn.01048d15
add esp, 0xc
push ebx
mov byte [ebp - 4], bl
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x10359a9
lea edi, [eax + 1]
push edi
lea ecx, [ebp - 0x30]
call fcn.01033530
movzx eax, al
cmp eax, ebx
jne 0x103547f
push 0x10048a8
mov eax, 0x8007000e
push 0x1004ef0
push eax
mov dword [ebp - 0x28], eax
call fcn.01048c52
add esp, 0xc
push dword [ebp - 0x30]
jmp 0x103543e
push edi
mov edi, dword [ebp - 0x30]
push edi
call esi
cmp eax, ebx
jne 0x10354c9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x10354a0
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x10354ae
mov dword [ebp - 0x28], 0x80004005
push 0x1004858
push 0x1004ed8
call esi
push eax
call fcn.01048d15
add esp, 0xc
push edi
jmp 0x103543e
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 0x1035520
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x1035506
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x1035514
mov dword [ebp - 0x28], 0x80004005
push 0x1004e80
push 0x1004e64
jmp 0x10354b8
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 0x1035567
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x103554a
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x1035558
mov dword [ebp - 0x28], 0x80004005
push 0x1004e08
push 0x1004dec
jmp 0x10354b8
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.0104e0a0
push edx
push eax
push dword [ebp - 0x5c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x48]
mov esi, 0x1002428
push eax
push esi
push 0x1004d88
push 0x4000000
call fcn.01048e9b
xor eax, eax
add esp, 0x20
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x1004d60
push 0x4000000
call fcn.01048e9b
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 0x1035915
cmp esi, 0xffffffff
je 0x1035915
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 0x1035655
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x1035625
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x1035633
mov dword [ebp - 0x28], 0x80004005
push 0x1004d08
push 0x1004cec
call esi
push eax
call fcn.01048d15
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.0102fb22
jmp 0x103547a
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.0104dff0
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 0x10356de
push 0x1000
push 0x1002428
push 0x1004cb4
push 0x2000000
call fcn.01048e9b
add esp, 0x10
push 0x1004ca4
push 0x1004c8c
mov eax, 0x8007000e
push eax
mov dword [ebp - 0x28], eax
call fcn.01048c52
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.0102fb22
push dword [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x103598d
push 0x1010
push ebx
call esi
mov dword [ebp - 0x40], eax
cmp eax, ebx
jne 0x1035715
push 0x1010
push 0x1002428
push 0x1004c58
push 0x2000000
call fcn.01048e9b
add esp, 0x10
push 0x1004c40
push 0x1004c28
jmp 0x10356b4
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 0x10358e0
jb 0x1035752
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x68], eax
jae 0x10358e0
mov ecx, dword [ebp - 0x50]
mov eax, 0x8000
mov dword [ebp - 0x44], ecx
cmp ecx, eax
jb 0x1035764
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 0x103580a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x103580a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x1002428
push 0x1004c00
push 0x2000000
call fcn.01048e9b
add esp, 0x10
call esi
cmp eax, ebx
jle 0x10357d9
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x10357e7
mov dword [ebp - 0x28], 0x80004005
push 0x1004bcc
push 0x1004bb4
call esi
push eax
call fcn.01048d15
add esp, 0xc
cmp dword [ebp - 0x2c], ebx
je 0x10356cd
jmp 0x10356c5
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.0104dfb0
add dword [ebp - 0x58], eax
adc dword [ebp - 0x54], edx
cmp dword [ebp - 0x80], ebx
je 0x10358c8
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 0x10358a3
xor edx, edx
mov eax, 0x4000
div edi
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01034d29
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01034d77
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.0104dfb0
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 0x103573c
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 0x10357fc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, ebx
jle 0x103592b
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x28], eax
jl 0x1035939
mov dword [ebp - 0x28], 0x80004005
lea eax, [ebp - 0x24]
push eax
push 0x100476c
push 0x1004b9c
call edi
push eax
call fcn.01048d15
add esp, 0x10
cmp esi, ebx
je 0x103547a
jmp 0x1035648
cmp dword [ebp - 0x34], ebx
je 0x103599b
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x40], ebx
je 0x10359a9
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.0104dd7d
ret 0xc