Function at 0x18014d52
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov edi, ecx
push 2
mov dword [ebp - 4], edi
pop esi
mov ecx, dword [edi + 0x7c]
cmp ecx, dword [edi + 0x80]
je 0x18014d7b
xor eax, eax
cmp dword [ecx + 0x14], eax
setne al
mov dword [ebp - 8], eax
mov esi, eax
mov al, byte [edi + 0x89]
mov bl, byte [edi + 0x11]
mov dword [ebp - 8], eax
call fcn.1809b5f0
mov ecx, dword [edi + 0xc]
push esi
push ebx
push dword [ebp - 8]
mov dl, byte [eax + 1]
call fcn.18016759
movzx ecx, byte [0x1819d65c]
add esp, 0xc
neg ecx
mov byte [edi + 0x88], al
mov byte [ebp - 8], al
sbb ecx, ecx
push 7
pop eax
push 1
pop ebx
and ecx, 0x1819d030
je 0x18014df6
push ebx
push eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
call fcn.18004986
mov dword [ebp - 0x14], eax
movzx eax, byte [edi + 0x88]
push eax
lea eax, [ebp - 0x20]
push str._is_machine:__d_
push eax
call fcn.18002f73
mov al, byte [edi + 0x88]
add esp, 0xc
mov byte [ebp - 8], al
push dword [ebp - 8]
mov ecx, 0x18197088
call fcn.18049e08
mov ecx, edi
call fcn.1801636a
mov ecx, eax
call fcn.18012148
cmp byte [edi + 0x88], 0
je 0x18014e29
call fcn.1801120f
test al, al
je 0x18014e29
mov cl, bl
xor ebx, ebx
jmp 0x18014e2d
xor ebx, ebx
mov cl, bl
call fcn.1803f229
mov edx, dword [edi]
lea ecx, [ebp - 8]
call fcn.1800d102
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], ebx
je 0x18014ff4
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x18014ff4
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x18014e95
push 7
pop edx
push 3
pop eax
push eax
push edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
call fcn.18004986
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push str._Current_dir___s_
push eax
call fcn.18002f73
add esp, 0xc
mov edx, dword [edi + 0x7c]
cmp edx, dword [edi + 0x80]
je 0x18014eff
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0xc]
call fcn.18007d9c
mov ecx, dword [ebp - 4]
mov edx, eax
push edi
mov ecx, dword [ecx + 0x7c]
cmp dword [ecx + 0x14], ebx
setne cl
call fcn.180a05db
pop ecx
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0x10], edi
lea ecx, [ecx - 0x10]
call fcn.18003435
mov ecx, edi
call fcn.18012148
test edi, edi
jns 0x18014efc
cmp edi, 0x80070005
mov edi, dword [ebp - 4]
jne 0x18014ef7
mov eax, dword [edi + 0x7c]
cmp dword [eax + 0x14], ebx
je 0x18014ef7
call fcn.1801120f
test al, al
je 0x18014eff
mov ecx, dword [ebp - 0x10]
jmp 0x18014f01
mov edi, dword [ebp - 4]
mov ecx, ebx
call fcn.18012148
mov cl, byte [edi + 0x88]
call fcn.18016650
mov ecx, eax
call fcn.18012148
mov ecx, dword [edi + 0xc]
cmp ecx, 0x20
ja 0x18014f27
call fcn.180155f4
jmp 0x18014f2a
xor eax, eax
inc eax
test al, al
je 0x18014f43
mov ecx, edi
call fcn.18015635
test al, al
je 0x18014f43
mov edi, 0xa0430607
jmp 0x18014ffb
lea eax, [ebp - 8]
mov ecx, edi
push eax
push dword [edi + 0xc]
call fcn.18015697
mov edi, eax
mov ecx, edi
call fcn.18012148
test edi, edi
js 0x18014ffb
lea ecx, [ebp - 0x70]
call fcn.180141bc
call fcn.1809b5f0
lea eax, [ebp - 0x10]
push eax
call fcn.1809ba7b
lea edx, [ebp - 0x70]
mov ecx, eax
call fcn.1801d802
mov ecx, dword [ebp - 0x10]
mov edi, eax
add ecx, 0xfffffff0
call fcn.18003435
mov ecx, edi
call fcn.18012148
test edi, edi
jns 0x18014fda
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x18014fea
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
call fcn.18004986
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push str._ReadCachedOmahaPolicy_failed___x_
push eax
call fcn.18002f73
add esp, 0xc
jmp 0x18014fea
call fcn.1809b5f0
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.1809bad5
lea ecx, [ebp - 0x70]
call fcn.18014247
jmp 0x18014ffd
call fcn.18011439
mov edi, eax
mov ebx, edi
lea ecx, [esi - 0x10]
call fcn.18003435
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret