Function at 0x41b900
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1690
call fcn.00429120
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x163c]
push eax
lea eax, [ebp - 0x1638]
push eax
lea eax, [ebp - 0x1634]
push eax
call fcn.00419380
add esp, 0x10
test al, al
je 0x41b965
cmp dword [ebp - 0x1634], 6
ja 0x41bbe5
jne 0x41b965
cmp dword [ebp - 0x1638], 2
ja 0x41bbe5
jne 0x41b965
cmp dword [ebp - 0x163c], 2
jae 0x41bbe5
push 0x802
lea eax, [ebp - 0xe2c]
push 0
push eax
call fcn.0042b800
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0042b800
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.004191e0
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0042b800
add esp, 0x2c
lea eax, [ebp - 0x210]
push 0x104
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x802
lea eax, [ebp - 0x1630]
push 0
push eax
call fcn.0042b800
push str.emsdeploy_forticlient.conf
lea eax, [ebp - 0x210]
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x1630]
push 0x401
push eax
call fcn.00414570
lea eax, [ebp - 0x1630]
push eax
push str.FCConfig.exe
lea eax, [ebp - 0x41c]
push eax
push str.__s_s___q__o_export__m_vpn__f__s
push 0xffffffffffffffff
lea eax, [ebp - 0xe2c]
push 0x401
push eax
call fcn.00414570
add esp, 0x40
lea eax, [ebp - 0xe2c]
push eax
push 0x45d81c
call fcn.00420880
add esp, 8
mov dword [ebp - 0x1690], 0x44
xor eax, eax
mov dword [ebp - 0x1664], 1
mov word [ebp - 0x164e], ax
xorps xmm0, xmm0
mov word [ebp - 0x1660], ax
lea eax, [ebp - 0x164c]
push eax
lea eax, [ebp - 0x1690]
movlpd qword [ebp - 0x168c], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
movlpd qword [ebp - 0x1684], xmm0
lea eax, [ebp - 0xe2c]
movlpd qword [ebp - 0x167c], xmm0
movlpd qword [ebp - 0x1674], xmm0
movlpd qword [ebp - 0x166c], xmm0
movlpd qword [ebp - 0x165e], xmm0
movlpd qword [ebp - 0x1656], xmm0
movups xmmword [ebp - 0x164c], xmm0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41baf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FCConfig.exe
push str.BackupVPNTunnels
push str._ws__failed_to_launch__s__retval_d
call fcn.00420880
add esp, 0x10
jmp 0x41bb1b
push 0xffffffffffffffff
push dword [ebp - 0x164c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x164c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1648]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1634], 6
push ebx
jae 0x41bb3b
push 1
push str.softwareFortinetFortiClient
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00413840
add esp, 0xc
jmp 0x41bb4d
push str.softwareFortinetFortiClient
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004137e0
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x41bbe4
push esi
push edi
push 0x20a
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0042b800
add esp, 0xc
xor esi, esi
push dword [esi + 0x479ae0]
lea eax, [ebp - 0x628]
push str.EMSDEPLOY_FORTICLIENT.bak
push str.softwareFortinet
push str._s_s_s
push 0xffffffffffffffff
push 0x105
push eax
call fcn.00414570
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00413620
mov edi, eax
add esp, 0x24
test edi, edi
je 0x41bbcc
push 0
push edi
push dword [esi + 0x479ae0]
push ebx
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
push edi
call fcn.00413610
add esp, 4
add esi, 4
cmp esi, 0xc
jb 0x41bb71
push ebx
call fcn.00413610
add esp, 4
call fcn.00423c60
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret