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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584a9e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5eb1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 2
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4049c6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 5
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4049d0
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 - 0x20], 1
cmp dword [eax + 0x28], 0
jne 0x404490
add eax, 0x34
mov ecx, ebx
push eax
call fcn.00402490
push ebx
mov ecx, 0x5efc34
call fcn.00414300
jmp 0x404982
add eax, 0x24
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004039d0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00409670
mov edi, dword [ebp - 0x1c]
cmp dword [edi - 0xc], 0
lea eax, [edi - 0x10]
mov dword [ebp - 0x24], eax
jl 0x404504
push 0x595e10
push edi
call fcn.0055d739
add esp, 8
test eax, eax
je 0x4044dd
sub eax, edi
sar eax, 1
je 0x4044fb
cmp dword [edi - 0xc], 0
jl 0x404504
push 0x595e1c
push edi
call fcn.0055d739
add esp, 8
test eax, eax
je 0x404504
sub eax, edi
sar eax, 1
jne 0x404504
mov dword [ebp - 0x1c], 1
jmp 0x40450b
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x24]
or edi, 0xffffffff
mov byte [ebp - 4], 3
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404529
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
je 0x404660
push eax
lea ecx, [ebp - 0x10]
call fcn.00402490
lea ecx, [ebp + 0xc]
call fcn.00402250
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 7
mov eax, dword [ecx]
cmp dword [eax + 0x18], 0
jne 0x404571
lea eax, [ebp - 0x24]
push eax
call fcn.004148f0
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.00402490
jmp 0x4045b7
lea eax, [ecx + 4]
push eax
lea ecx, [ebp + 0xc]
call fcn.00402490
push 0
push dword [ebp + 0xc]
call fcn.0055a6e8
test eax, eax
je 0x4045d5
push str.D:_apreltechSibSiblNew_folderSibInstallerInstall.cpp
lea ecx, [ebp - 0x24]
call fcn.004020a0
mov esi, dword [eax]
push 0
push dword [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.0055a6e8
push 0x2a9
push esi
push eax
call fcn.00422950
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov eax, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4045d5
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.00423ee0
add esp, 8
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x24], edi
call fcn.004039d0
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00403b80
add esp, 8
test eax, eax
je 0x404619
push 0
push esi
push eax
call fcn.00422950
add esp, 0xc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0xc]
add ecx, 0x14
push eax
push dword [ecx + 8]
call fcn.0042851d
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.00402490
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 0x404982
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404982
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004039d0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.00409670
mov edi, dword [ebp - 0x1c]
cmp dword [edi - 0xc], 0
lea edx, [edi - 0x10]
mov dword [ebp - 0x1c], edx
jge 0x404694
or edi, 0xffffffff
jmp 0x4046b9
push 0x595e24
push edi
call fcn.0055d739
mov edx, dword [ebp - 0x1c]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x4046b0
or edi, 0xffffffff
jmp 0x4046b9
sub ecx, edi
sar ecx, 1
mov dword [ebp - 0x24], ecx
mov edi, ecx
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4046d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
cmp edi, 1
je 0x40496d
lea ecx, [ebp - 0x10]
call fcn.00402490
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 0x40470a
push 0x104
mov ecx, ebx
call fcn.00408150
mov ecx, dword [ebx]
cmp dword [ecx - 8], 0x104
jl 0x4049da
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 0x404744
xor ecx, ecx
jmp 0x40475a
push dword [eax - 8]
push eax
call fcn.00561908
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4049da
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x4049da
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
push dword [0x5efbac]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4047c7
push str.D:_apreltechSibSiblNew_folderSibInstallerInstall.cpp
lea ecx, [ebp - 0x24]
call fcn.004020a0
mov esi, dword [eax]
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2be
push esi
push eax
call fcn.00422950
mov edx, dword [ebp - 0x24]
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 0x4047c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402490
mov ecx, ebx
call fcn.00404020
mov eax, dword [ebx]
mov ecx, edi
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x4047f6
push 0x104
mov ecx, ebx
call fcn.00408150
mov ecx, dword [ebx]
cmp dword [ecx - 8], 0x104
jl 0x4049da
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.0056ae36
add esp, 0xc
test eax, eax
jne 0x40483e
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x24]
push 2
call fcn.00422950
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x404848
xor ecx, ecx
jmp 0x40485e
push dword [eax - 8]
push eax
call fcn.00561908
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4049da
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x4049da
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
jne 0x40491a
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.00402490
mov eax, dword [ebx]
sub edi, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or edi, eax
jge 0x4048ab
push 0x104
mov ecx, ebx
call fcn.00408150
mov ecx, dword [ebx]
cmp dword [ecx - 8], 0x104
jl 0x4049da
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 0x4048df
xor ecx, ecx
jmp 0x4048f5
push dword [eax - 8]
push eax
call fcn.00561908
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4049da
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x4049da
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
mov eax, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call eax
jmp 0x40497f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp dword [eax - 0xc], 0
je 0x40497f
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
mov eax, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call eax
test eax, eax
jne 0x40497f
push str.D:_apreltechSibSiblNew_folderSibInstallerInstall.cpp
lea ecx, [ebp + 0xc]
call fcn.004020a0
mov edi, dword [eax]
mov byte [ebp - 4], 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2d5
push edi
push eax
call fcn.00422950
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.004023e0
jmp 0x40497f
mov ecx, ebx
call fcn.00402490
push ebx
mov ecx, 0x5efc34
call fcn.004147a0
or edi, 0xffffffff
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40499b
push eax
push dword [ebx]
push 2
call fcn.00422950
add esp, 0xc
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4049b0
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.00403690
push 0x80004005
call fcn.00403690
push 0x80070057
call fcn.00403690
int3