Function at 0x1801bbb5
Capabilities:
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea esi, [ebx + 0x90]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 2
pop ecx
push 0x2c
cdq
pop edi
idiv edi
test eax, eax
je 0x1801bbf5
push 0
call fcn.1806364a
xor ecx, ecx
cmp dword [eax + 0x14], ecx
setne cl
movzx eax, byte [ebx + 0x11]
push ecx
xor esi, esi
push eax
inc esi
push esi
call fcn.1806a976
mov dl, byte [ebx + 0xa9]
pop ecx
mov ecx, dword [ebx + 0xc]
call fcn.1801d471
pop ecx
pop ecx
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
mov edi, 0x180fbba0
and ecx, edi
mov byte [ebx + 0xa8], al
je 0x1801bc6f
push esi
push 8
mov dword [ebp - 0x220], ecx
call fcn.18001d8a
mov dword [ebp - 0x21c], eax
movzx eax, byte [ebx + 0xa8]
push eax
lea eax, [ebp - 0x220]
push str._is_machine:__d_
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], 8
call fcn.18001000
add esp, 0xc
cmp byte [ebx + 0xa8], 0
mov eax, 0x180ca028
jne 0x1801bc82
mov eax, 0x180ca040
push eax
mov esi, str.DropboxUpdateIsMachine
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x1801bcee
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov edi, eax
je 0x1801bce9
push 0xffffffffffffffff
push 4
mov dword [ebp - 0x220], ecx
call fcn.18001d8a
or dword [ebp - 0x218], 0xffffffff
push edi
push esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push str._::SetEnvironmentVariable_failed___s__0x_x_
push eax
mov dword [ebp - 0x214], 4
call fcn.18001000
add esp, 0x10
mov edi, 0x180fbba0
movzx eax, byte [ebx + 0xa8]
cmp al, byte [0x180fb940]
je 0x1801bd0b
push eax
call fcn.180250f6
pop ecx
push eax
call fcn.18019601
pop ecx
cmp byte [ebx + 0xa8], 0
je 0x1801bd21
call fcn.18011de4
test al, al
je 0x1801bd21
mov al, 1
jmp 0x1801bd23
xor al, al
push eax
call fcn.1804a2f0
xor eax, eax
mov dword [esp], 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.1809d820
mov eax, dword [ebx]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1801bd83
lea esi, [ebp - 0x210]
call fcn.18009fb3
test al, al
mov eax, esi
jne 0x1801bd8d
push 0x208
push 0
push eax
call fcn.1809d820
add esp, 0xc
call fcn.1800fc86
jmp 0x1801bec0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1801bd83
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, edi
je 0x1801bde9
push 3
pop esi
push esi
push 8
mov dword [ebp - 0x220], ecx
call fcn.18001d8a
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push str._Current_dir___s_
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], 8
call fcn.18001000
add esp, 0xc
mov ecx, ebx
call fcn.1801c6a0
push eax
call fcn.18019601
movzx eax, byte [ebx + 0xa8]
pop ecx
push eax
call fcn.1801d36b
pop ecx
push eax
call fcn.18019601
mov eax, dword [ebx + 0xc]
pop ecx
cmp eax, 0x1e
ja 0x1801be1b
call fcn.1801c572
jmp 0x1801be1d
mov al, 1
test al, al
je 0x1801be35
push ebx
call fcn.1801c5b1
test al, al
je 0x1801be35
mov eax, 0xa0430607
jmp 0x1801bec0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x224]
call fcn.18003fba
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebx + 0xc]
call fcn.1801c61b
mov ebx, eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.18004250
push ebx
call fcn.18019615
pop ecx
test al, al
je 0x1801bebe
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, edi
je 0x1801beba
push 0xfffffffffffffffe
pop esi
push esi
push 4
pop edi
push edi
mov dword [ebp - 0x220], ecx
call fcn.18001d8a
push ebx
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push str._LoadResourceDllIfNecessary_failed__0x_08x_
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], edi
call fcn.18001000
add esp, 0xc
mov eax, ebx
jmp 0x1801bec0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809ccb5
leave
ret