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

Disassembly:
push 0xffffffffffffffff
push 0x47c52e
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a67d0]
xor eax, esp
push eax
lea eax, [esp + 0x560]
mov dword fs:[0], eax
xor ebx, ebx
push 0xc6
lea eax, [esp + 0x8a]
push ebx
push eax
mov dword [esp + 0x574], ebx
mov word [esp + 0x90], bx
call fcn.00461680
mov edi, dword [esp + 0x57c]
xor eax, eax
add esp, 0xc
cmp edi, ebx
mov word [esp + 0x70], bx
mov dword [esp + 0x72], eax
mov dword [esp + 0x76], eax
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov word [esp + 0x82], ax
je 0x40ec07
mov eax, dword [edi]
cmp eax, ebx
je 0x40ec07
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov esi, eax
cmp esi, ebx
jne 0x40ec03
push 0x8007000e
call fcn.0047ab90
mov eax, esi
jmp 0x40ec09
xor eax, eax
push eax
lea ecx, [esp + 0x1c]
call fcn.00403a00
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x88]
push eax
push ebx
push ebx
push ecx
mov byte [esp + 0x57c], 1
call fcn.00462876
add esp, 0x14
push ebx
push 0x25
lea edx, [esp + 0x35c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x354]
push eax
lea ecx, [esp + 0x18]
call fcn.00403a00
push 1
push 0x483c64
lea ecx, [esp + 0x1c]
mov byte [esp + 0x570], 2
call fcn.004030e0
lea eax, [esp + 0x84]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ec80
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004030e0
lea eax, [esp + 0x70]
lea edx, [eax + 2]
jmp 0x40ecb0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ecb0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x1c]
call fcn.004030e0
cmp edi, ebx
mov ebp, dword [esp + 0x14]
je 0x40ed01
mov eax, dword [edi]
cmp eax, ebx
je 0x40ed01
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov esi, eax
cmp esi, ebx
jne 0x40ecfd
push 0x8007000e
call fcn.0047ab90
mov eax, esi
jmp 0x40ed03
xor eax, eax
push ebx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40eeb1
cmp dword [esp + 0x574], ebx
je 0x40ee4f
push 0x44
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.00461680
xor eax, eax
push 0x206
lea edx, [esp + 0x15e]
push ebx
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x70], 1
mov word [esp + 0x74], bx
mov dword [esp + 0x44], 0x44
mov word [esp + 0x164], bx
call fcn.00461680
add esp, 0x18
xor eax, eax
jmp 0x40ed80
movzx ecx, word [eax + str.regsvr32.exe]
mov word [esp + eax + 0x14c], cx
add eax, 2
cmp cx, bx
jne 0x40ed80
mov eax, dword [esp + 0x14]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40eda0
lea edi, [esp + 0x14c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40edc0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40edc0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x14c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40ede6
mov ecx, dword [0x483c78]
mov edx, dword [0x483c7c]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea edx, [esp + 0x16c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40eeb1
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x568], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x568], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x570]
call fcn.00401380
mov eax, 1
jmp 0x40ef0e
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x568], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eed9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x568], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ef00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x570]
call fcn.00401380
xor eax, eax
mov ecx, dword [esp + 0x560]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.004611fb
add esp, 0x558
ret