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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546216
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0x206
mov dword [ebp - 0x430], ecx
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.0052c850
add esp, 0xc
cmp dword [ebp + 8], 0
mov dword [ebp - 0x42c], 0
jbe 0x41a838
lea ebx, [esi + 0xc44]
nop
mov eax, dword [ebx]
cmp eax, 1
je 0x41a615
cmp eax, 2
jne 0x41a81c
cmp eax, 1
jne 0x41a621
mov esi, str.System32_regsvr32.exe
mov edi, str.FILEREGI
jmp 0x41a62b
mov esi, str.SysWoW64_regsvr32.exe
mov edi, str.FILEREGI64
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.0052c850
lea eax, [ebx - 0x624]
push eax
lea ecx, [ebx - 0x82c]
push ecx
push str._s_s
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.0052d99b
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.0052c850
add esp, 0x2c
push 0x104
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41a8a7
cmp eax, 0x104
jg 0x41a8a7
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.00404fe0
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x41a6d4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a6c5
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x428]
call fcn.00406390
push 0x5595ac
lea ecx, [ebp - 0x424]
call fcn.00404fe0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a700
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x424]
call fcn.00406390
push 1
push 0x5595a8
lea ecx, [ebp - 0x424]
call fcn.00406390
push 0x38
lea edx, [ebp - 0x468]
push 0
push edx
call fcn.0052c850
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
add esp, 0xc
lea edx, [ebp - 0x46c]
push edx
mov dword [ebp - 0x46c], 0x3c
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x450], 1
mov dword [ebp - 0x468], 0x40
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41a7a5
cmp dword [ebp - 0x44c], 0x20
jle 0x41a858
mov eax, dword [ebp - 0x434]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x430]
push edi
add ecx, 0xdd9c
call fcn.00427000
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a7f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a81c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x42c]
inc eax
add ebx, 0xc54
mov dword [ebp - 0x42c], eax
cmp eax, dword [ebp + 8]
jb 0x41a600
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a87e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a8a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x643
jmp 0x41a83a