Function at 0x1801bbd1
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 0x1801bc11
push 0
call fcn.18063662
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.1806a98c
mov dl, byte [ebx + 0xa9]
pop ecx
mov ecx, dword [ebx + 0xc]
call fcn.1801d48d
pop ecx
pop ecx
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
mov edi, 0x180fbb80
and ecx, edi
mov byte [ebx + 0xa8], al
je 0x1801bc8b
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, 0x180ca030
jne 0x1801bc9e
mov eax, 0x180ca048
push eax
mov esi, str.DropboxUpdateIsMachine
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x1801bd0a
call fcn.1800fc86
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
mov edi, eax
je 0x1801bd05
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, 0x180fbb80
movzx eax, byte [ebx + 0xa8]
cmp al, byte [0x180fb920]
je 0x1801bd27
push eax
call fcn.180250f6
pop ecx
push eax
call fcn.1801961d
pop ecx
cmp byte [ebx + 0xa8], 0
je 0x1801bd3d
call fcn.18011de4
test al, al
je 0x1801bd3d
mov al, 1
jmp 0x1801bd3f
xor al, al
push eax
call fcn.1804a6c8
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 0x1801bd9f
lea esi, [ebp - 0x210]
call fcn.18009fb3
test al, al
mov eax, esi
jne 0x1801bda9
push 0x208
push 0
push eax
call fcn.1809d820
add esp, 0xc
call fcn.1800fc86
jmp 0x1801bedc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1801bd9f
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, edi
je 0x1801be05
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.1801c6bc
push eax
call fcn.1801961d
movzx eax, byte [ebx + 0xa8]
pop ecx
push eax
call fcn.1801d387
pop ecx
push eax
call fcn.1801961d
mov eax, dword [ebx + 0xc]
pop ecx
cmp eax, 0x1e
ja 0x1801be37
call fcn.1801c58e
jmp 0x1801be39
mov al, 1
test al, al
je 0x1801be51
push ebx
call fcn.1801c5cd
test al, al
je 0x1801be51
mov eax, 0xa0430607
jmp 0x1801bedc
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.1801c637
mov ebx, eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.18004250
push ebx
call fcn.18019631
pop ecx
test al, al
je 0x1801beda
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, edi
je 0x1801bed6
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 0x1801bedc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809cca5
leave
ret