Function at 0x402eb0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push 0x104
mov eax, 0x4770ec
call fcn.004518c1
mov eax, edx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xa8], cl
xor ebx, ebx
mov dword [ebp - 0xb0], eax
xor eax, eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], ebx
push eax
call 0x421871
push str.OneDriveStandaloneUpdater.exe
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xac], eax
call fcn.004038b3
xor eax, eax
mov dword [ebp - 0x94], 0x44
lea edi, [ebp - 0xa4]
stosd dword es:[edi], eax
push 0x40
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x90]
push eax
call fcn.004546e0
add esp, 0xc
call fcn.0043a728
push str.OneDriveStandaloneUpdater.exe__repair:
lea ecx, [ebp - 0xf8]
mov esi, eax
call fcn.00403736
push esi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004038b3
push eax
lea ecx, [ebp - 0x34]
call fcn.00404175
lea ecx, [ebp - 0xf8]
call fcn.0040443d
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.004043f6
push str.__OneDrivePid:
push ebx
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 5
call fcn.00403cff
push eax
lea ecx, [ebp - 0xc8]
call fcn.00404175
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x34]
call fcn.004038dc
lea ecx, [ebp - 0xc8]
call fcn.0040443d
lea ecx, [ebp - 0xe0]
call fcn.0040443d
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x1c]
jmp 0x402fe5
cmp byte [ebp - 0xa8], 0
mov edi, dword [ebp - 0xac]
je 0x4030cc
push str.___vermismatch:
lea ecx, [ebp - 0x34]
call fcn.004038b3
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0xb0], eax
jle 0x4030bf
mov edi, ebx
mov esi, dword [eax + edi*4]
lea eax, [ebp - 0x34]
push 0x49a190
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004039c9
push esi
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.004038b3
push eax
lea ecx, [ebp - 0xc8]
call fcn.00404175
push 0x49a188
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 9
call fcn.004038b3
push eax
lea ecx, [ebp - 0xe0]
call fcn.00404175
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x34]
call fcn.004036fd
lea ecx, [ebp - 0xe0]
call fcn.0040443d
lea ecx, [ebp - 0xc8]
call fcn.0040443d
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 3
call fcn.0040443d
mov eax, dword [ebp - 0xb0]
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x403025
mov edi, dword [ebp - 0xac]
push 0x499f1c
lea ecx, [ebp - 0x34]
call fcn.004038b3
cmp dword [ebp - 0x20], 8
lea edx, [ebp - 0xa4]
push edx
lea edx, [ebp - 0x94]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
push ebx
cmovae eax, dword [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40311c
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403130
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea ecx, [ebp - 0x34]
call fcn.0040443d
lea ecx, [ebp - 0x4c]
call fcn.0040443d
mov eax, edi
call fcn.00451813
ret