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

Disassembly:
push 0x14
mov eax, 0x10047e25
call fcn.100263df
mov dword [ebp - 0x14], ecx
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10]
call fcn.100014cb
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.100014cb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 1
cmp dword [eax + 0x28], 0
jne 0x10002d75
add eax, 0x34
mov ecx, ebx
push eax
call fcn.100015bb
push ebx
mov ecx, 0x10060f1c
call fcn.1000ae34
jmp 0x10003035
push ecx
lea edi, [eax + 0x24]
mov esi, esp
mov dword [ebp - 0x20], esi
mov eax, dword [edi]
sub eax, 0x10
mov dword [ebp - 0x18], edi
push eax
call fcn.100025ee
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.10003f3f
pop ecx
test eax, eax
je 0x10002e8e
push edi
lea ecx, [ebp - 0x10]
call fcn.100015bb
lea ecx, [ebp + 0xc]
call fcn.100014cb
mov ecx, dword [ebp - 0x14]
xor esi, esi
mov byte [ebp - 4], 2
mov eax, dword [ecx]
cmp dword [eax + 0x18], esi
jne 0x10002dda
lea eax, [ebp - 0x18]
push eax
call fcn.1000b129
pop ecx
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.100015bb
jmp 0x10002e1d
lea eax, [ecx + 4]
push eax
lea ecx, [ebp + 0xc]
call fcn.100015bb
push esi
push dword [ebp + 0xc]
call fcn.10027ba7
test eax, eax
je 0x10002e2c
push str.D:_source_test_sibNew_folderSibInstallerInstall.cpp
lea ecx, [ebp - 0x18]
call fcn.100013ca
push 0x251
push dword [eax]
mov byte [ebp - 4], 4
push esi
push dword [ebp + 0xc]
call fcn.10027ba7
push eax
call fcn.100169a6
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.10005108
mov esi, dword [ebp - 0x10]
push esi
push str.downloading__s
call fcn.10016c77
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x20], edi
call fcn.100025ee
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.100027e6
pop ecx
pop ecx
test eax, eax
je 0x10002e6c
push 0
push esi
push eax
call fcn.100169a6
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
add ecx, 0x14
push eax
push dword [ecx + 8]
call fcn.10019ac6
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.100015bb
jmp 0x10003012
push ecx
mov esi, esp
mov dword [ebp - 0x20], esi
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.100025ee
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.10003f99
pop ecx
push edi
test eax, eax
je 0x10003023
lea ecx, [ebp - 0x10]
call fcn.100015bb
mov edi, 0x104
mov ecx, ebx
push edi
call fcn.10004eec
push edi
mov ecx, ebx
mov esi, eax
call fcn.100055b7
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.10005120
push dword [0x10060f0c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x10002f2d
push str.D:_source_test_sibNew_folderSibInstallerInstall.cpp
lea ecx, [ebp - 0x20]
call fcn.100013ca
push 0x266
push dword [eax]
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100169a6
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.10005108
push ebx
lea ecx, [ebp - 0x10]
call fcn.100015bb
mov ecx, ebx
call fcn.10002abd
push edi
mov ecx, ebx
call fcn.10004eec
mov esi, 0x104
mov ecx, ebx
push esi
mov edi, eax
call fcn.100055b7
push esi
mov esi, dword [ebp - 0x10]
push esi
push edi
call fcn.10035605
mov edi, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x10002f76
push eax
push dword [edi]
push 2
call fcn.100169a6
add esp, 0xc
push 0xffffffffffffffff
mov ecx, ebx
call fcn.10005120
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002fcf
push edi
mov ecx, ebx
call fcn.100015bb
push 0x104
mov ecx, ebx
call fcn.10004eec
push 0x104
mov ecx, ebx
mov edi, eax
call fcn.100055b7
push 0
push 0
push edi
call dword [sym.imp.SHELL32.dll_PathResolve]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.10005120
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x10003038
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp dword [eax - 0xc], 0
je 0x10003038
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x10003038
push str.D:_source_test_sibNew_folderSibInstallerInstall.cpp
lea ecx, [ebp + 0xc]
call fcn.100013ca
push 0x27d
push dword [eax]
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100169a6
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.10005108
jmp 0x10003038
mov ecx, ebx
call fcn.100015bb
push ebx
mov ecx, 0x10060f1c
call fcn.1000b091
mov esi, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10003051
push eax
push dword [ebx]
push 2
call fcn.100169a6
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.10005108
mov eax, ebx
call fcn.100263ad
ret 8