Function at 0x416a10
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44911e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x45c070]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
sub eax, 0x82
mov esi, ecx
mov dword [esp + 0x24], esi
je 0x416b7d
dec eax
je 0x416a7d
dec eax
jne 0x416f30
mov dword [0x45f374], 1
jmp 0x416f30
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2b8], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x416ac3
mov ecx, edi
lea eax, [esp + 0x10]
call fcn.00403650
mov esi, dword [esp + 0x10]
cmp dword [esi - 8], edi
jge 0x416ad2
push 0x80070057
call fcn.004036a0
push edi
xor eax, eax
mov dword [esi - 0xc], edi
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, esi
lea edx, [eax + 2]
jmp 0x416af0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416af0
sub eax, edx
sar eax, 1
js 0x416ac8
cmp eax, dword [esi - 8]
jg 0x416ac8
mov dword [esi - 0xc], eax
xor ecx, ecx
lea edx, [esp + 0x10]
mov word [esi + eax*2], cx
push edx
lea eax, [esp + 0x2c]
push eax
mov ebx, str._sca_backup.sbf
call fcn.00406e70
add esp, 8
mov ebx, 1
mov edi, 0x46024c
mov byte [esp + 0x2b8], bl
call fcn.00403840
mov byte [esp + 0x2b8], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416b64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [0x45f370], ebx
mov dword [esp + 0x2b8], 0xffffffff
lea eax, [esi - 0x10]
jmp 0x416f17
mov ecx, dword [0x460238]
call fcn.0041bc10
test eax, eax
jne 0x416bbc
mov edx, dword [0x45f3ec]
cmp dword [edx - 0xc], eax
je 0x416f30
push 0x319
push str.CInstaller::OnUserControl
push str.Installer.cpp
mov ecx, str.Failed_to_extract_data
call fcn.00403d80
add esp, 0xc
jmp 0x416f30
push 1
push esi
call fcn.00418360
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x2b8], 2
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x2b8], 3
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x2b8], 4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x416c49
mov ecx, edi
lea eax, [esp + 0x18]
call fcn.00403650
mov esi, dword [esp + 0x18]
cmp dword [esi - 8], edi
jge 0x416c58
push 0x80070057
call fcn.004036a0
push edi
xor ecx, ecx
mov dword [esi - 0xc], edi
push esi
mov word [esi + 0x208], cx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, dword [0x460238]
push edx
push str._sLtprx
lea edi, [esp + 0x18]
call fcn.00403fa0
add esp, 8
cmp dword [0x45f3e8], 0
mov esi, str.install64.cmd
jne 0x416c97
mov esi, str.install.cmd
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x451924
call fcn.00406e70
push eax
lea edx, [esp + 0x28]
push edx
mov ebx, 0x45296c
mov byte [esp + 0x2c8], 5
call fcn.00406e70
push eax
lea eax, [esp + 0x40]
push eax
mov ebx, esi
mov byte [esp + 0x2d0], 6
call fcn.00406e70
add esp, 0x18
lea edi, [esp + 0x14]
mov byte [esp + 0x2b8], 7
call fcn.00403840
mov byte [esp + 0x2b8], 6
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b8], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b8], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x40
lea ecx, [esp + 0x4c]
push 0
push ecx
mov dword [esp + 0x50], 0x44
call fcn.00431310
mov eax, dword [esp + 0x20]
xor edx, edx
add esp, 0xc
mov word [esp + 0x74], dx
cmp dword [eax - 4], 1
jle 0x416da0
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403590
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
push edx
push 0
push 0x8000020
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x416dd9
mov eax, dword [esp + 0x34]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x20]
push 0x460238
push ecx
mov ebx, str.agent.zip
call fcn.00406e70
add esp, 8
mov byte [esp + 0x2b8], 8
mov ecx, dword [eax]
lea esi, [esp + 0x8c]
mov dword [esp + 0x8c], vtable.CUnzipper.0
mov dword [esp + 0x90], 0
call fcn.00409390
mov byte [esp + 0x2b8], 0xa
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416e44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [0x460238]
lea edi, [esp + 0x8c]
call fcn.00409300
mov esi, dword [esp + 0x24]
push 1
mov ecx, esi
call fcn.00413830
test eax, eax
jne 0x416e8e
mov edx, dword [0x45f3ec]
cmp dword [edx - 0xc], eax
je 0x416e8e
push 0x32d
push str.CInstaller::OnUserControl
push str.Installer.cpp
mov ecx, str.Failed_to_install_agent
call fcn.00403d80
add esp, 0xc
call fcn.0040dfc0
cmp dword [0x45f374], 0
je 0x416ea1
call fcn.00416980
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2b8], 4
call fcn.004092b0
mov byte [esp + 0x2b8], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416edd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b8], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416f05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2b8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416f30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.0042decf
mov esp, ebp
pop ebp
ret 4