Function at 0x4049d0
Capabilities:
Check if file exists
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ebae
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fb1a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 2
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x404fbd
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 5
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 4
test ecx, ecx
je 0x404fc7
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov byte [ebp - 4], 3
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
or edi, 0xffffffff
mov dword [ebp - 0x1c], 1
cmp dword [eax + 0x28], 0
jne 0x404a80
add eax, 0x34
mov ecx, ebx
push eax
call fcn.004024c0
push ebx
mov ecx, 0x5ffc64
call fcn.004153b0
jmp 0x404f79
mov eax, dword [eax + 0x24]
sub eax, 0x10
push eax
call fcn.00404000
add eax, 0x10
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040a050
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], eax
jl 0x404aef
push 0x5a101c
push edi
call fcn.00562f40
add esp, 8
test eax, eax
je 0x404ac8
sub eax, edi
sar eax, 1
je 0x404ae6
cmp dword [edi - 0xc], 0
jl 0x404aef
push 0x5a1028
push edi
call fcn.00562f40
add esp, 8
test eax, eax
je 0x404aef
sub eax, edi
sar eax, 1
jne 0x404aef
mov dword [ebp - 0x18], 1
jmp 0x404af6
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x20]
or edi, 0xffffffff
mov byte [ebp - 4], 3
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404b14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
je 0x404c4e
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
add eax, 0x24
push eax
call fcn.004024c0
lea ecx, [ebp + 0xc]
call fcn.00402280
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
mov eax, dword [ecx]
cmp dword [eax + 0x18], 0
jne 0x404b5f
lea eax, [ebp - 0x20]
push eax
call fcn.004159a0
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.004024c0
jmp 0x404ba5
lea eax, [ecx + 4]
push eax
lea ecx, [ebp + 0xc]
call fcn.004024c0
push 0
push dword [ebp + 0xc]
call fcn.0055fefe
test eax, eax
je 0x404bc3
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x20]
call fcn.004020d0
mov esi, dword [eax]
push 0
push dword [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.0055fefe
push 0x24d
push esi
push eax
call fcn.004277f0
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404bc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
push esi
push str.downloading__s
call fcn.004290c0
add esp, 8
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x20], edi
call fcn.00404000
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00404170
add esp, 8
test eax, eax
je 0x404c07
push 0
push esi
push eax
call fcn.004277f0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
add ecx, 0x14
push eax
push dword [ecx + 8]
call fcn.0042db11
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.004024c0
mov edx, dword [ebp + 0xc]
or edi, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404f79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404f79
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x24]
sub eax, 0x10
push eax
call fcn.00404000
add eax, 0x10
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.0040a050
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
lea edx, [edi - 0x10]
mov dword [ebp - 0x18], edx
jge 0x404c86
or edi, 0xffffffff
jmp 0x404cab
push 0x5a1030
push edi
call fcn.00562f40
mov edx, dword [ebp - 0x18]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x404ca2
or edi, 0xffffffff
jmp 0x404cab
sub ecx, edi
sar ecx, 1
mov dword [ebp - 0x20], ecx
mov edi, ecx
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404cc4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0x24
push eax
cmp edi, 1
je 0x404f64
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov eax, dword [ebx]
mov edi, 1
mov ecx, edi
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x404d00
push 0x104
mov ecx, ebx
call fcn.00408b50
mov ecx, dword [ebx]
cmp dword [ecx - 8], 0x104
jl 0x404fd1
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [ebx]
push 0x104
push ecx
push dword [ebp - 0x10]
mov word [eax + 0x208], dx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebx]
test eax, eax
jne 0x404d3a
xor ecx, ecx
jmp 0x404d50
push dword [eax - 8]
push eax
call fcn.0056712f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x404fd1
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x404fd1
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
push dword [0x5ffc54]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x404dbd
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x20]
call fcn.004020d0
mov esi, dword [eax]
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x262
push esi
push eax
call fcn.004277f0
mov edx, dword [ebp - 0x20]
add esp, 0xc
mov byte [ebp - 4], 3
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404dbd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov ecx, ebx
call fcn.00404610
mov eax, dword [ebx]
mov ecx, edi
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x404dec
push 0x104
mov ecx, ebx
call fcn.00408b50
mov ecx, dword [ebx]
cmp dword [ecx - 8], 0x104
jl 0x404fd1
mov esi, dword [ebp - 0x10]
xor edx, edx
mov dword [ecx - 0xc], 0x104
mov eax, dword [ebx]
push 0x104
push esi
push ecx
mov word [eax + 0x208], dx
call fcn.00572401
add esp, 0xc
test eax, eax
jne 0x404e34
mov ecx, dword [ebp + 0xc]
push eax
push dword [ecx + 0x24]
push 2
call fcn.004277f0
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x404e3e
xor ecx, ecx
jmp 0x404e54
push dword [eax - 8]
push eax
call fcn.0056712f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x404fd1
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x404fd1
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x404f14
add eax, 0x24
mov ecx, ebx
push eax
call fcn.004024c0
mov eax, dword [ebx]
sub edi, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or edi, eax
jge 0x404ea5
push 0x104
mov ecx, ebx
call fcn.00408b50
mov ecx, dword [ebx]
cmp dword [ecx - 8], 0x104
jl 0x404fd1
xor edx, edx
mov dword [ecx - 0xc], 0x104
mov eax, dword [ebx]
push edx
push edx
push ecx
mov word [eax + 0x208], dx
call dword [sym.imp.SHELL32.dll_PathResolve]
mov eax, dword [ebx]
test eax, eax
jne 0x404ed9
xor ecx, ecx
jmp 0x404eef
push dword [eax - 8]
push eax
call fcn.0056712f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x404fd1
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x404fd1
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call eax
jmp 0x404f76
mov eax, dword [eax + 0x40]
cmp dword [eax - 0xc], 0
je 0x404f76
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call eax
test eax, eax
jne 0x404f76
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp + 0xc]
call fcn.004020d0
mov edi, dword [eax]
mov byte [ebp - 4], 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x279
push edi
push eax
call fcn.004277f0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.00402410
jmp 0x404f76
mov ecx, ebx
call fcn.004024c0
push ebx
mov ecx, 0x5ffc64
call fcn.00415850
or edi, 0xffffffff
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404f92
push eax
push dword [ebx]
push 2
call fcn.004277f0
add esp, 0xc
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x404fa7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00403cc0
push 0x80004005
call fcn.00403cc0
push 0x80070057
call fcn.00403cc0
int3