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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44867e
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 0x41699d
dec eax
je 0x41689d
dec eax
jne 0x416d50
mov dword [0x45f374], 1
jmp 0x416d50
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 0x4168e3
mov ecx, edi
lea eax, [esp + 0x10]
call fcn.00403660
mov esi, dword [esp + 0x10]
cmp dword [esi - 8], edi
jge 0x4168f2
push 0x80070057
call fcn.004036b0
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 0x416910
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416910
sub eax, edx
sar eax, 1
js 0x4168e8
cmp eax, dword [esi - 8]
jg 0x4168e8
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.00406e80
add esp, 8
mov ebx, 1
mov edi, 0x46024c
mov byte [esp + 0x2b8], bl
call fcn.00403850
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 0x416984
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 0x416d37
mov ecx, dword [0x460238]
call fcn.0041b2e0
test eax, eax
jne 0x4169dc
mov edx, dword [0x45f3ec]
cmp dword [edx - 0xc], eax
je 0x416d50
push 0x310
push str.CInstaller::OnUserControl
push str.Installer.cpp
mov ecx, str.Failed_to_extract_data
call fcn.00403d90
add esp, 0xc
jmp 0x416d50
push 1
push esi
call fcn.00417e30
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 0x416a69
mov ecx, edi
lea eax, [esp + 0x18]
call fcn.00403660
mov esi, dword [esp + 0x18]
cmp dword [esi - 8], edi
jge 0x416a78
push 0x80070057
call fcn.004036b0
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.00403fb0
add esp, 8
cmp dword [0x45f3e8], 0
mov esi, str.install64.cmd
jne 0x416ab7
mov esi, str.install.cmd
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x451824
call fcn.00406e80
push eax
lea edx, [esp + 0x28]
push edx
mov ebx, 0x45288c
mov byte [esp + 0x2c8], 5
call fcn.00406e80
push eax
lea eax, [esp + 0x40]
push eax
mov ebx, esi
mov byte [esp + 0x2d0], 6
call fcn.00406e80
add esp, 0x18
lea edi, [esp + 0x14]
mov byte [esp + 0x2b8], 7
call fcn.00403850
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 0x416b34
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 0x416b5c
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 0x416b84
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.004308f0
mov eax, dword [esp + 0x20]
xor edx, edx
add esp, 0xc
mov word [esp + 0x74], dx
cmp dword [eax - 4], 1
jle 0x416bc0
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 0x416bf9
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.00406e80
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 0x416c64
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.004137f0
test eax, eax
jne 0x416cae
mov edx, dword [0x45f3ec]
cmp dword [edx - 0xc], eax
je 0x416cae
push 0x324
push str.CInstaller::OnUserControl
push str.Installer.cpp
mov ecx, str.Failed_to_install_agent
call fcn.00403d90
add esp, 0xc
call fcn.0040df40
cmp dword [0x45f374], 0
je 0x416cc1
call fcn.004167a0
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 0x416cfd
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 0x416d25
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 0x416d50
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.0042d4af
mov esp, ebp
pop ebp
ret 4