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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c316
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x60c9c8]
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.00531fb0
add esp, 0xc
cmp dword [ebp + 8], 0
mov dword [ebp - 0x42c], 0
jbe 0x41da38
lea ebx, [esi + 0xc44]
nop
mov eax, dword [ebx]
cmp eax, 1
je 0x41d815
cmp eax, 2
jne 0x41da1c
cmp eax, 1
jne 0x41d821
mov esi, str.System32_regsvr32.exe
mov edi, str.FILEREGI
jmp 0x41d82b
mov esi, str.SysWoW64_regsvr32.exe
mov edi, str.FILEREGI64
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.00531fb0
lea eax, [ebx - 0x624]
push eax
lea ecx, [ebx - 0x82c]
push ecx
push 0x55d250
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.00533b0b
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.00531fb0
add esp, 0x2c
push 0x104
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41daa7
cmp eax, 0x104
jg 0x41daa7
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405b90
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x41d8d4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d8c5
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x428]
call fcn.00407c10
push 0x560234
lea ecx, [ebp - 0x424]
call fcn.00405b90
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 0x41d900
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x424]
call fcn.00407c10
push 1
push 0x560230
lea ecx, [ebp - 0x424]
call fcn.00407c10
push 0x38
lea edx, [ebp - 0x468]
push 0
push edx
call fcn.00531fb0
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 0x41d9a5
cmp dword [ebp - 0x44c], 0x20
jle 0x41da58
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, 0xd9b8
call fcn.0042cc80
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 0x41d9f3
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 0x41da1c
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 0x41d800
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.00531f97
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 0x41da7e
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 0x41daa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x643
jmp 0x41da3a