Function at 0x51be50
Capabilities:
Accept command line arguments
Delete registry key

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
mov ebp, ecx
mov ecx, dword [0x5eb324]
push edi
lea eax, [esp + 0x18]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edx, [esp + 0x11c]
push 0x104
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
lea ecx, [esp + 0x220]
push 0x104
push ecx
lea edx, [esp + 0x124]
push 0xffffffffffffffff
push edx
push 0
push 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x220]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
test eax, eax
jl 0x51bee0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x220]
push 0
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x51beee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dx, word [0x5e0d48]
mov cl, byte [0x5e0d4a]
mov word [esp + 0x10], dx
mov byte [esp + 0x12], cl
mov cl, byte [eax]
mov esi, eax
test cl, cl
je 0x51bf3b
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov cl, dl
test cl, cl
lea eax, [esp + 0x10]
je 0x51bf33
cmp byte [esi], cl
je 0x51bf48
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x51bf22
mov cl, byte [esp + 0x10]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x51bf1a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x418
ret
push esi
call edi
mov esi, eax
test esi, esi
je 0x51bf3b
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
push str.UnRegister
push esi
call ebx
test eax, eax
je 0x51bfb3
push str.Register
push esi
call ebx
test eax, eax
je 0x51c05e
cmp byte [esi], 0
je 0x51bf3b
mov cl, byte [esp + 0x10]
test cl, cl
lea eax, [esp + 0x10]
je 0x51bf95
cmp byte [esi], cl
je 0x51bf9f
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x51bf84
mov cl, byte [esp + 0x10]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x51bf3b
jmp 0x51bf7c
push esi
call edi
mov esi, eax
test esi, esi
jne 0x51bf57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov dword [0x5eb390], 0x5e0768
push eax
push 0x5eb3c0
push 0x5eb320
mov dword [0x5eb3f8], 0x5eb320
mov dword [0x5eb320], 0x84
mov dword [0x5eb384], 0x300
call fcn.0051c980
push 0
push 0
push 0
push 0x67
push 0x5eb320
call fcn.0051d020
push 0
mov ecx, ebp
call fcn.00517c60
mov edx, dword [ebp + 0x6c]
mov ecx, ebp
push edx
call fcn.0051c0f0
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push str.StormBox
push SysReAllocStringLen
call esi
push 0x5ce8d0
push SysReAllocStringLen
call esi
test eax, eax
jne 0x51c047
push str.SoftwareMicrosoftInternet_ExplorerProtocolExecuteStorm
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, ebp
call fcn.0051c3b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x418
ret
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov dword [0x5eb390], 0x5e0768
push eax
push 0x5eb3c0
push 0x5eb320
mov dword [0x5eb3f8], 0x5eb320
mov dword [0x5eb320], 0x84
mov dword [0x5eb384], 0x300
call fcn.0051c980
push 0
push 0
push 1
push 0x67
push 0x5eb320
call fcn.0051d020
push 1
mov ecx, ebp
call fcn.00517c60
call fcn.0051c510
call fcn.0051c710
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x418
ret