Function at 0x40140a
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
push 0x360
mov eax, 0x445c60
call fcn.00424e5c
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0x10]
mov bl, dl
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x340], eax
mov al, dl
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x33c], al
xor eax, eax
push 7
pop edi
mov word [ebp - 0x130], ax
lea eax, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 0x338], ecx
mov byte [ebp - 0x354], dl
mov byte [ebp - 0x350], dl
mov dword [ebp - 0x344], 0x270f
mov byte [ebp - 0x32b], dl
mov byte [ebp - 0x329], dl
mov byte [ebp - 0x34c], dl
mov byte [ebp - 0x330], dl
mov byte [ebp - 0x32c], dl
mov byte [ebp - 0x32a], dl
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x348], bl
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x18], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x18], esi
jle 0x4016e3
mov ebx, eax
mov edi, dword [ebx + esi*4]
mov ecx, str._remotedebug
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4014ec
test dx, dx
je 0x4014e5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4014ec
add eax, 4
add ecx, 4
test dx, dx
jne 0x4014c3
xor edx, edx
xor eax, eax
inc edx
jmp 0x4014f3
sbb eax, eax
xor edx, edx
inc edx
or eax, edx
test eax, eax
jne 0x401502
mov byte [ebp - 0x354], dl
jmp 0x4016d3
mov ecx, str._wait
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401532
test dx, dx
je 0x40152b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401532
add eax, 4
add ecx, 4
test dx, dx
jne 0x401509
xor edx, edx
xor eax, eax
inc edx
jmp 0x401539
sbb eax, eax
xor edx, edx
inc edx
or eax, edx
test eax, eax
jne 0x401548
mov byte [ebp - 0x350], dl
jmp 0x4016d3
mov ecx, str._remoteport
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401575
test dx, dx
je 0x401571
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401575
add eax, 4
add ecx, 4
test dx, dx
jne 0x40154f
xor eax, eax
jmp 0x40157a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4015b9
lea eax, [esi + 1]
cmp dword [ebp - 0x18], eax
jle 0x4015aa
push dword [ebx + esi*4 + 4]
call fcn.0042a0aa
pop ecx
mov ecx, eax
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x4015aa
movzx eax, cx
mov dword [ebp - 0x344], eax
jmp 0x4016d3
mov dword [ebp - 0x344], 0x270f
jmp 0x4016d3
mov ecx, str._permachineupdate
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4015e9
test dx, dx
je 0x4015e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4015e9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4015c0
xor edx, edx
xor eax, eax
inc edx
jmp 0x4015f0
sbb eax, eax
xor edx, edx
inc edx
or eax, edx
test eax, eax
jne 0x4015ff
mov byte [ebp - 0x32c], dl
jmp 0x4016d3
mov ecx, str._configure_business
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40162f
test dx, dx
je 0x401628
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40162f
add eax, 4
add ecx, 4
test dx, dx
jne 0x401606
xor edx, edx
xor eax, eax
inc edx
jmp 0x401636
sbb eax, eax
xor edx, edx
inc edx
or eax, edx
test eax, eax
jne 0x401645
mov byte [ebp - 0x32b], dl
jmp 0x4016d3
push edx
mov edx, str._url:
mov ecx, edi
call fcn.00403778
test al, al
je 0x401687
mov edx, dword [ebx + esi*4]
push ecx
lea ecx, [ebp - 0x118]
call fcn.00403540
push eax
lea ecx, [ebp - 0x130]
call fcn.00402882
lea ecx, [ebp - 0x118]
call fcn.00403265
xor eax, eax
inc eax
mov byte [ebp - 0x32a], al
jmp 0x4016d3
mov eax, dword [ebx + esi*4]
mov ecx, 0x458c14
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4016b8
test dx, dx
je 0x4016b1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4016b8
add eax, 4
add ecx, 4
test dx, dx
jne 0x40168f
xor edx, edx
xor eax, eax
inc edx
jmp 0x4016bf
sbb eax, eax
xor edx, edx
inc edx
or eax, edx
mov ecx, dword [ebp - 0x20]
test eax, eax
movzx ecx, cl
cmove ecx, edx
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x33c], cl
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x4014b9
mov ebx, dword [ebp - 0x14]
push 7
pop edi
push 0x44
call fcn.004245a3
pop ecx
push 0x44
mov esi, eax
push 0
push esi
call fcn.00426720
add esp, 0xc
mov ecx, esi
call fcn.004097ff
push dword [ebp - 0x340]
and dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
and dword [ebp - 0x3c], 0
push eax
call fcn.00402e90
xor eax, eax
mov dword [ebp - 0xec], edi
xor edx, edx
mov dword [ebp - 0x104], edi
xor ecx, ecx
mov dword [ebp - 0x5c], edi
mov edi, edx
mov dword [ebp - 0xf0], edx
mov word [ebp - 0x100], ax
mov dword [ebp - 0x108], edx
mov word [ebp - 0x118], ax
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], cx
cmp byte [ebp - 0x32a], al
je 0x40182a
xorps xmm0, xmm0
mov dword [ebp - 0x9c], vtable.ProtocolHandlerRequest.0
movlpd qword [ebp - 0x90], xmm0
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x94], edx
call fcn.0040dabd
and dword [ebp - 0x80], edi
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x98], eax
xor eax, eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x7c], 7
call fcn.0041063f
lea ecx, [ebp - 0x9c]
call fcn.00410c3e
mov bl, al
lea ecx, [ebp - 0x9c]
lea eax, [ebp - 0x40]
mov byte [ebp - 0x348], bl
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041033b
push eax
lea ecx, [ebp - 0x70]
call fcn.004028ad
lea ecx, [ebp - 0x58]
call fcn.00403265
cmp dword [ebp - 0x60], edi
jne 0x401802
mov edi, 0xc02500b6
jmp 0x40181a
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x100]
call fcn.00402882
xor eax, eax
inc eax
mov byte [ebp - 0x330], al
lea ecx, [ebp - 0x9c]
call fcn.00410314
mov eax, dword [ebp - 0x60]
xor edx, edx
test eax, eax
jne 0x4018bb
mov esi, dword [ebp - 0x334]
test esi, esi
je 0x4018bb
push str._client
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.004029c9
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.00415f2f
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x330], al
call fcn.00403265
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x24], 7
push str._configure_business:
mov word [ebp - 0x38], ax
call fcn.004029c9
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.00415f2f
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x329], al
call fcn.00403265
cmp byte [ebp - 0x32b], 0
jne 0x4018d6
cmp byte [ebp - 0x329], 0
jne 0x4018d6
mov byte [ebp - 0x329], 0
jmp 0x4018df
xor eax, eax
inc eax
mov byte [ebp - 0x329], al
push ecx
push ecx
mov ecx, dword [ebp - 0x3c]
mov eax, esp
and dword [eax], 0
and dword [eax + 4], 0
test ecx, ecx
je 0x4018f5
lock inc dword [ecx + 4]
mov esi, dword [ebp - 0x40]
mov dword [eax], esi
mov dword [eax + 4], ecx
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp - 0x33c]
push dword [ebp - 0x330]
push ecx
call fcn.004175a2
mov dl, byte [ebp - 0x329]
pop ecx
mov cl, al
call fcn.0041671c
mov edx, str.Personal
lea ecx, [ebp - 0x70]
call fcn.00402eef
xor ecx, ecx
inc ecx
xor al, cl
mov byte [ebp - 0x329], al
je 0x401a4f
lea ecx, [ebp - 0x2d0]
call fcn.0040d0a3
mov eax, dword [esi]
lea ecx, [ebp - 0x2d0]
push ecx
lea ecx, [ebp - 0x70]
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x44a358]
mov ecx, dword [ebp - 0x40]
call esi
test al, al
je 0x401981
mov bl, byte [ebp - 0x287]
jmp 0x4019bd
cmp byte [ebp - 0x34c], 0
je 0x4019bd
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00416c83
test al, al
je 0x4019b5
call fcn.00416ce6
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
lea ecx, [ebp - 0x58]
call fcn.00403265
test bl, bl
jne 0x401a2c
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x24], 7
push str._OnPrem
mov word [ebp - 0x38], ax
call fcn.004029c9
xor ecx, ecx
xor esi, esi
inc ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x401a23
mov ebx, dword [ebp - 0x334]
push dword [ebx + esi*4]
lea ecx, [ebp - 0x58]
call fcn.004028e6
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x58]
call fcn.00403d79
lea ecx, [ebp - 0x58]
test eax, eax
je 0x401a27
call fcn.00403265
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x4019f7
xor ecx, ecx
inc ecx
xor bl, bl
jmp 0x401a31
call fcn.00403265
xor ecx, ecx
inc ecx
mov bl, cl
mov byte [ebp - 0x348], bl
test byte [ebp - 0x1c], cl
je 0x401a44
lea ecx, [ebp - 0x38]
call fcn.00403265
lea ecx, [ebp - 0x2d0]
call fcn.00402049
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x32c], 0
je 0x401b53
push 7
pop ecx
xor ebx, ebx
mov dword [ebp - 0x310], ecx
xor eax, eax
mov dword [ebp - 0x2f8], ecx
mov dword [ebp - 0x2e0], ecx
mov esi, 0x459068
push esi
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x314], ebx
mov word [ebp - 0x324], ax
mov dword [ebp - 0x2fc], ebx
mov word [ebp - 0x30c], ax
mov dword [ebp - 0x2e4], ebx
mov word [ebp - 0x2f4], ax
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2dc], ebx
call fcn.004029c9
push esi
lea ecx, [ebp - 0x324]
call fcn.004029c9
push esi
lea ecx, [ebp - 0x30c]
call fcn.004029c9
push 0x30
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x328], reloc.OLEAUT32.dll_SysReAllocString
push ebx
push eax
call fcn.00426720
add esp, 0xc
lea eax, [ebp - 0x328]
lea ecx, [ebp - 0xa0]
push eax
call fcn.0041d535
lea ecx, [ebp - 0xa0]
call fcn.0041d6c0
lea ecx, [ebp - 0xa0]
call fcn.0041d634
lea ecx, [ebp - 0x2f4]
call fcn.00403265
lea ecx, [ebp - 0x30c]
call fcn.00403265
lea ecx, [ebp - 0x324]
call fcn.00403265
mov esi, dword [ebp - 0x338]
jmp 0x401f96
mov esi, dword [ebp - 0x338]
test edi, edi
js 0x401f94
mov ecx, esi
call fcn.004024f7
mov edi, eax
test edi, edi
js 0x401f94
xor ecx, ecx
xor eax, eax
push 7
pop edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov word [ebp - 0x38], ax
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], edx
mov word [ebp - 0xe8], ax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], edx
mov word [ebp - 0xd0], ax
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], edx
mov word [ebp - 0xb8], ax
call fcn.00416d43
lea edx, [ebp - 0xb8]
mov ecx, eax
call fcn.004165e8
test eax, eax
jns 0x401c04
push str.ucrtbase.dll
lea ecx, [ebp - 0x38]
call fcn.004029c9
push str.FileSyncClient.dll
lea ecx, [ebp - 0xe8]
call fcn.004029c9
push str.LoggingPlatform.dll
lea ecx, [ebp - 0xd0]
call fcn.004029c9
jmp 0x401d05
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
cmovae eax, dword [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov esi, 0x459064
lea edx, [ebp - 0xb8]
push esi
lea ecx, [ebp - 0x88]
call fcn.00402c9a
push str.ucrtbase.dll
mov ecx, eax
call fcn.004029f2
push eax
lea ecx, [ebp - 0x58]
call fcn.004030bd
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x38]
call fcn.004028ad
lea ecx, [ebp - 0x58]
call fcn.00403265
lea ecx, [ebp - 0x88]
call fcn.00403265
push esi
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x88]
call fcn.00402c9a
push str.FileSyncClient.dll
mov ecx, eax
call fcn.004029f2
push eax
lea ecx, [ebp - 0x58]
call fcn.004030bd
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004028ad
lea ecx, [ebp - 0x58]
call fcn.00403265
lea ecx, [ebp - 0x88]
call fcn.00403265
push esi
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x88]
call fcn.00402c9a
push str.LoggingPlatform.dll
mov ecx, eax
call fcn.004029f2
push eax
lea ecx, [ebp - 0x36c]
call fcn.004030bd
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0xd0]
call fcn.004028ad
lea ecx, [ebp - 0x36c]
call fcn.00403265
lea ecx, [ebp - 0x88]
call fcn.00403265
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
cmovae eax, dword [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x401e6a
call 0x41552a
test al, al
jne 0x401e6a
push str.InitLogging
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x334], eax
test eax, eax
je 0x401e6a
push 4
pop eax
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
xor eax, eax
inc eax
mov byte [ebp - 0x33c], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.DisableObfuscateLogs
push str.SoftwareMicrosoftOneDrive
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401db0
inc eax
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
movzx eax, al
cmova eax, ecx
mov byte [ebp - 0x33c], al
mov cl, byte [ebp - 0x329]
and dword [ebp - 0x330], 0
call fcn.004155c0
test al, al
je 0x401e1b
test bl, bl
je 0x401f04
and dword [ebp - 0x48], 0
lea edx, [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x44], 7
lea ecx, [ebp - 0x70]
mov word [ebp - 0x58], ax
call fcn.00416b2e
test eax, eax
js 0x401e13
cmp dword [ebp - 0x48], 0
je 0x401e13
lea ecx, [ebp - 0x70]
call fcn.00415715
test al, al
je 0x401e13
call fcn.004156e7
xor ecx, ecx
test al, al
setne cl
inc ecx
mov dword [ebp - 0x330], ecx
lea ecx, [ebp - 0x58]
call fcn.00403265
mov ecx, dword [ebp - 0x330]
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov ebx, dword [ebp - 0x334]
cmovae eax, dword [ebp - 0x70]
push eax
push ecx
push dword [ebp - 0x33c]
xor eax, eax
mov ecx, ebx
inc eax
push eax
push dword [ebp - 0x350]
push dword [ebp - 0x344]
push dword [ebp - 0x354]
push 0x1e
push 0x64
push 0x65
push str.SyncEngine
push str.OneDrive_Trace_Session
call dword [0x44a358]
call ebx
cmp dword [ebp - 0xd4], 8
lea eax, [ebp - 0xe8]
cmovae eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x401f16
call fcn.0040231d
test al, al
jne 0x401ec0
call fcn.00402496
test al, al
jne 0x401ec0
call fcn.004023ae
mov edx, dword [ebp - 0x338]
xor eax, eax
lea ecx, [eax + 1]
call fcn.00402140
test eax, eax
mov ecx, 0xc02500e4
cmovns edi, ecx
test edi, edi
js 0x401f27
push str.RunClient
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x401f27
push dword [ebp - 0x34c]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
push dword [ebp - 0x348]
cmovae ecx, dword [ebp - 0x70]
push ecx
push dword [ebp - 0x340]
mov ecx, eax
call dword [0x44a358]
call dword [ebp - 0x14]
mov edi, eax
jmp 0x401f27
call fcn.004156e7
xor ecx, ecx
test al, al
setne cl
inc ecx
jmp 0x401e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
mov eax, 0xc02500e3
cmove edi, eax
test esi, esi
je 0x401f4f
push str.UninitLogging
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x340], eax
test eax, eax
je 0x401f4f
mov ecx, eax
call dword [0x44a358]
call dword [ebp - 0x340]
test ebx, ebx
je 0x401f5a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x401f65
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0xb8]
call fcn.00403265
lea ecx, [ebp - 0xd0]
call fcn.00403265
lea ecx, [ebp - 0xe8]
call fcn.00403265
lea ecx, [ebp - 0x38]
call fcn.00403265
mov esi, dword [ebp - 0x338]
xor ebx, ebx
cmp edi, 0xbc3
jne 0x401fe7
xor eax, eax
mov dword [ebp - 0x35c], ebx
push str._background
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x358], 7
mov word [ebp - 0x36c], ax
call fcn.004029c9
lea eax, [ebp - 0x340]
push eax
lea edx, [ebp - 0x36c]
lea ecx, [ebp - 0x70]
call fcn.004168eb
lea ecx, [ebp - 0x36c]
call fcn.00403265
mov eax, 0xc02500e3
cmp edi, eax
jne 0x402007
call fcn.0040231d
test al, al
jne 0x402007
call fcn.004023ae
mov edx, esi
xor cl, cl
call fcn.00402140
lea ecx, [ebp - 0x70]
call fcn.00403265
lea ecx, [ebp - 0x118]
call fcn.00403265
lea ecx, [ebp - 0x100]
call fcn.00403265
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x402034
call fcn.004030f2
lea ecx, [ebp - 0x130]
call fcn.00403265
mov eax, edi
call fcn.00424e06
ret 0x10