Function at 0x180169c2
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, dword [ecx + 0x7c]
xor eax, eax
push 2
mov dword [ebp - 0xc], ecx
pop esi
mov dword [ebp - 8], eax
cmp edi, dword [ecx + 0x80]
je 0x180169f1
xor edx, edx
cmp dword [edi + 0x14], eax
setne dl
mov dword [ebp - 4], edx
mov esi, edx
mov al, byte [ecx + 0x89]
mov bl, byte [ecx + 0x11]
mov dword [ebp - 4], eax
call fcn.180ad5bd
push esi
push ebx
mov ebx, dword [ebp - 0xc]
push dword [ebp - 4]
mov dl, byte [eax + 1]
mov ecx, dword [ebx + 0xc]
call fcn.180182cf
movzx ecx, byte [0x181c8652]
add esp, 0xc
neg ecx
mov byte [ebx + 0x88], al
mov byte [ebp - 4], al
sbb ecx, ecx
push 7
pop edi
push 1
pop eax
and ecx, 0x181c7840
je 0x18016a6f
push eax
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
call fcn.18005b0c
mov dword [ebp - 0x10], eax
movzx eax, byte [ebx + 0x88]
push eax
lea eax, [ebp - 0x1c]
push str._is_machine:__d_
push eax
call fcn.180040d3
mov al, byte [ebx + 0x88]
add esp, 0xc
mov byte [ebp - 4], al
push dword [ebp - 4]
mov ecx, 0x181c1410
call fcn.1804b9d6
mov ecx, ebx
call fcn.18017ede
cmp byte [ebx + 0x88], 0
je 0x18016a99
call fcn.18012c45
test al, al
je 0x18016a99
mov cl, 1
jmp 0x18016a9b
xor cl, cl
call fcn.1804229b
mov edx, dword [ebx]
lea ecx, [ebp - 4]
call fcn.1800e61a
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x18016c2b
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x18016c2b
movzx ecx, byte [0x181c8652]
neg ecx
sbb ecx, ecx
and ecx, 0x181c7840
je 0x18016b01
push 3
pop eax
push eax
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
call fcn.18005b0c
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push str._Current_dir___s_
push eax
call fcn.180040d3
add esp, 0xc
mov edx, dword [ebx + 0x7c]
cmp edx, dword [ebx + 0x80]
je 0x18016b58
mov edi, dword [ebx + 0x74]
lea ecx, [ebp - 0xc]
call fcn.18009092
mov ecx, dword [ebx + 0x7c]
mov edx, eax
push edi
cmp dword [ecx + 0x14], 0
setne cl
call fcn.180b43f3
pop ecx
mov ecx, dword [ebp - 0xc]
mov edi, eax
add ecx, 0xfffffff0
call fcn.18004595
mov ecx, edi
call fcn.18013d98
test edi, edi
jns 0x18016b58
cmp edi, 0x80070005
jne 0x18016b58
mov eax, dword [ebx + 0x7c]
cmp dword [eax + 0x14], 0
je 0x18016b58
call fcn.18012c45
mov cl, byte [ebx + 0x88]
call fcn.180181c6
mov ecx, dword [ebx + 0xc]
cmp ecx, 0x1f
ja 0x18016b72
call fcn.18017206
jmp 0x18016b75
xor eax, eax
inc eax
test al, al
je 0x18016b8e
mov ecx, ebx
call fcn.18017246
test al, al
je 0x18016b8e
mov edi, 0xa0430607
jmp 0x18016c32
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push dword [ebx + 0xc]
call fcn.180172a8
mov edi, eax
mov ecx, edi
call fcn.18013d98
test edi, edi
js 0x18016c32
lea ecx, [ebp - 0x80]
call fcn.18015e27
mov ecx, dword [0x181c6af4]
lea eax, [ebp - 0x80]
push eax
call fcn.1801f86f
mov edi, eax
mov ecx, edi
call fcn.18013d98
test edi, edi
jns 0x18016c11
movzx ecx, byte [0x181c8652]
neg ecx
sbb ecx, ecx
and ecx, 0x181c7840
je 0x18016c21
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
call fcn.18005b0c
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push str._ReadCachedOmahaPolicy_failed___x_
push eax
call fcn.180040d3
add esp, 0xc
jmp 0x18016c21
call fcn.180ad5bd
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
call fcn.180ae7f3
lea ecx, [ebp - 0x80]
call fcn.18015ebb
jmp 0x18016c35
call fcn.18012e6f
mov edi, eax
mov dword [ebp - 8], edi
lea ecx, [esi - 0x10]
call fcn.18004595
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret