Function at 0x493f90
Capabilities:
Create process on windows
Create process suspended
Get common file path
Query or enumerate registry value
Resume thread
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x310]
sub esp, 0x310
push 0xfffffffffffffffe
push 0x509dd8
push 0x4b7620
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x52e144]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x30c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x318]
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x3c], 0x104
mov dword [ebp - 0x20], ebx
cmp eax, ebx
je 0x4942b3
cmp byte [eax], bl
je 0x4942b3
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push 0x50ef68
call fcn.00404690
add esp, 4
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4942b3
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4942a9
push 0x5201a8
call fcn.00404690
push eax
lea eax, [ebp]
push eax
call fcn.00404270
add esp, 0xc
test eax, eax
je 0x4942a9
push 0x44
push ebx
lea ecx, [ebp - 0x80]
push ecx
call fcn.004b6dc0
mov dword [ebp - 0x80], 0x44
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
xor edx, edx
mov word [ebp - 0x50], dx
or dword [ebp - 0x54], 1
push 0x5201a0
call fcn.00404690
add esp, 0x10
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4940a0
sub eax, ecx
mov esi, ecx
lea edi, [ebp]
dec edi
nop
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4940b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x24]
mov ecx, eax
jmp 0x4940d0
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4940d0
sub eax, ecx
mov esi, ecx
lea edi, [ebp]
dec edi
nop
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4940e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
lea edx, [ebp]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x494142
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x520178
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
jmp 0x4942a2
mov ecx, dword [ebp - 0x2c]
mov dword [0x548f14], ecx
call fcn.0040a7e0
cmp eax, 0xffffffff
je 0x494189
imul eax, eax, 0x6c
lea esi, [eax + 0x539728]
mov edi, dword [esi]
mov dword [esi], 0xd13ab1ef
push 1
mov edx, dword [0x548f14]
push edx
call fcn.0048af70
push eax
push str.DoHookProcessNT_to_IE:__x
push 0x527e20
call fcn.00401350
add esp, 0x14
mov dword [esi], edi
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x4e20
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49424e
push 0x520148
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
push ebx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp + 0x208], bl
push 0x103
push ebx
lea eax, [ebp + 0x209]
push eax
call fcn.004b6dc0
add esp, 0xc
push ebx
push 0x1c
lea ecx, [ebp + 0x208]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x49424e
push 0x520114
call fcn.00404690
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x494217
sub eax, edx
lea edi, [ebp + 0x208]
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x494227
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp + 0x208]
push edx
call fcn.004113c0
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, dword [ebp - 0x34]
push ecx
call esi
jmp 0x4942a2
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x30c]
xor ecx, ebp
call fcn.004b6da3
add ebp, 0x310
mov esp, ebp
pop ebp
ret