Function at 0x411ec0
Capabilities:
Check if file exists
Get common file path
Get disk information
Get disk size
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x222]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x304], edi
mov word [ebp - 0x224], ax
call fcn.0048f070
lea edx, [ebp - 0x300]
push edx
lea eax, [ebp - 0x224]
push eax
push esi
mov dword [ebp - 0x300], 0x104
call fcn.00411560
add esp, 0x18
test al, al
je 0x411f7b
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411f7b
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x224]
push eax
push ecx
push edi
call fcn.0048f4e8
push edi
push 0x4b1a34
push str.GetSetupInfoFun
mov bl, 1
call fcn.0041a1c0
add esp, 0x18
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
push 0x208
lea edx, [ebp - 0x224]
push ebx
push edx
call fcn.0048f070
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x224]
push ecx
mov dword [ebp - 0x300], 0x104
call fcn.00410980
add esp, 0x14
test al, al
je 0x412094
mov dx, word [ebp - 0x224]
xor eax, eax
push 0x4b1934
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push 4
push eax
mov word [ebp - 0xc], dx
call fcn.0048f473
mov cx, word [ebp - 0xc]
push 0x4b1934
xor eax, eax
lea edx, [ebp - 0x1c]
push 4
push edx
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
mov word [ebp - 0x1c], cx
call fcn.0048f473
add esp, 0x18
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x2fc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2fc], ebx
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x412043
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
jmp 0x412047
xor ecx, ecx
xor eax, eax
shrd ecx, eax, 0x14
shr eax, 0x14
xor edx, edx
cmp eax, edx
jb 0x412094
ja 0x41205b
cmp ecx, dword [ebp + 0xc]
jbe 0x412094
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x224]
push ecx
push edx
push edi
call fcn.0048f4e8
push edi
push 0x4b1a78
push str.GetSetupInfoFun
mov bl, 1
call fcn.0041a1c0
add esp, 0x18
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
mov ecx, str.platform
mov eax, esi
jmp 0x4120a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4120c6
cmp dx, bx
je 0x4120c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4120c6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4120a0
xor eax, eax
jmp 0x4120cb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41222d
push 0x208
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.0048f070
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push ebx
push 0x2a
lea ecx, [ebp - 0x224]
push ecx
push ebx
call esi
lea eax, [ebp - 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412104
sub eax, edx
sar eax, 1
jne 0x412122
push ebx
push 0x26
lea edx, [ebp - 0x224]
push edx
push ebx
call esi
xor eax, eax
push 0x4b1934
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0x224]
lea ecx, [ebp - 0x14]
push 4
push ecx
mov word [ebp - 0x14], ax
call fcn.0048f473
mov dx, word [ebp - 0x14]
xor eax, eax
push 0x4b1934
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x1c]
push 4
push eax
mov word [ebp - 0x1c], dx
call fcn.0048f473
add esp, 0x18
lea ecx, [ebp - 0x2fc]
push ecx
lea edx, [ebp - 0x2f4]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2fc], ebx
mov dword [ebp - 0x2f8], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4121b0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
jmp 0x4121b4
xor ecx, ecx
xor eax, eax
shrd ecx, eax, 0x14
shr eax, 0x14
xor edx, edx
cmp eax, edx
jb 0x41222d
ja 0x4121c8
cmp ecx, dword [ebp + 0xc]
jbe 0x41222d
push 0x4b1930
lea edx, [ebp - 0x224]
push 0x104
push edx
call fcn.0048f473
push 0x4b18fc
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.0048f473
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x224]
push ecx
push edx
push edi
call fcn.0048f4e8
push edi
push 0x4b1a4c
push str.GetSetupInfoFun
mov bl, 1
call fcn.0041a1c0
add esp, 0x30
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
push 0xc6
lea ecx, [ebp - 0x2ea]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x2ec], ax
call fcn.0048f070
add esp, 0xc
mov edi, 0x43
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
lea esi, [ebp - 0x2ec]
cmp word [ebp - 0x2ec], bx
je 0x41231e
lea esp, [esp]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4122f8
mov dx, word [esi]
xor eax, eax
push 0x4b1934
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x14]
push 4
push eax
mov word [ebp - 0x14], dx
call fcn.0048f473
add esp, 0xc
lea ecx, [ebp - 0x2fc]
push ecx
lea edx, [ebp - 0x2f4]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2fc], ebx
mov dword [ebp - 0x2f8], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4122f8
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 8]
jb 0x4122f8
mov eax, dword [ebp - 0x1c]
ja 0x4122ef
cmp eax, dword [ebp - 0xc]
jbe 0x4122f8
movzx edi, word [esi]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412300
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], bx
lea esi, [esi + eax*2 + 2]
jne 0x412270
push 0x208
lea edx, [ebp - 0x224]
push ebx
push edx
call fcn.0048f070
push 0x4b1934
lea eax, [ebp - 0x224]
push 0x104
push eax
mov word [ebp - 0x224], di
call fcn.0048f473
push 0x4b18fc
lea ecx, [ebp - 0x224]
push 0x104
push ecx
call fcn.0048f473
mov dx, word [ebp - 0x224]
xor eax, eax
push 0x4b1934
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x14]
push 4
push eax
mov word [ebp - 0x14], dx
call fcn.0048f473
mov cx, word [ebp - 0x14]
push 0x4b1934
xor eax, eax
lea edx, [ebp - 0x1c]
push 4
push edx
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
mov word [ebp - 0x1c], cx
call fcn.0048f473
add esp, 0x3c
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x2f4]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2fc], ebx
mov dword [ebp - 0x2f8], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4123f1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
jmp 0x4123f5
xor ecx, ecx
xor eax, eax
shrd ecx, eax, 0x14
shr eax, 0x14
xor edx, edx
cmp eax, edx
jb 0x412448
ja 0x412409
cmp ecx, dword [ebp + 0xc]
jbe 0x412448
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x304]
lea ecx, [ebp - 0x224]
push ecx
push edx
push esi
call fcn.0048f4e8
push esi
push 0x4b1a00
push str.GetSetupInfoFun
mov bl, 1
call fcn.0041a1c0
add esp, 0x18
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
push 0x4b19ec
push str.GetSetupInfoFun
call fcn.0041a1c0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret