Function at 0x413960
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x52be84]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
call fcn.0041fc00
push eax
lea ecx, [esp + 0x20]
call fcn.00431b90
lea esi, [esp + 0x24]
call fcn.0041c3d0
push 0x51a9a8
lea ecx, [esp + 0x10]
call fcn.00403d30
push 0x51a9a8
lea ecx, [esp + 0x14]
call fcn.00403d30
call fcn.0041b6b0
test eax, eax
jne 0x4139e8
call fcn.0041c4c0
lea edi, [esp + 0xc]
call fcn.0041c520
mov eax, dword [esp + 0x34]
test eax, eax
je 0x413a63
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], 0
jmp 0x413a63
lea eax, [esp + 0x18]
push eax
push 0x20219
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413a63
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x44]
push eax
push 0
push str.HaiKeyUser_00002
push ecx
mov dword [esp + 0x2c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413a40
sub eax, edx
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x14]
call fcn.00404330
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
mov dword [ebx], 0
cmp dword [eax - 0xc], 0
jne 0x413b32
mov esi, dword [esp + 0x10]
add esi, 0xfffffff0
lea edi, [esi + 0xc]
mov dword [ebx], 1
cmp dword [edi], 0
jne 0x413aaa
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004520b0
add esp, 0x14
cmp eax, 1
jne 0x413aaa
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x413ac0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [esp + 0xc]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jne 0x413aee
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004520b0
add esp, 0x14
cmp eax, 1
jne 0x413aee
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x413b04
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0x24]
call fcn.0041c450
lea ecx, [esp + 0x1c]
call fcn.004334e0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.004520a0
mov esp, ebp
pop ebp
ret 8
push 0x5c
push eax
call fcn.004556a0
add esp, 8
test eax, eax
je 0x413ba7
sub eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jle 0x413ba7
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00415580
mov ecx, dword [eax]
mov esi, dword [esp + 0xc]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x413b9e
cmp dword [esi + 0xc], 0
jl 0x413b90
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x413b90
push eax
call fcn.00403e80
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00403fe0
add edi, 0x10
mov dword [esp + 0xc], edi
jmp 0x413b9e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00404330
lea ecx, [esp + 0x14]
call fcn.00403df0
push 0x51c4f8
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004156e0
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
add esp, 0xc
cmp eax, esi
je 0x413c03
cmp dword [esi + 0xc], 0
jl 0x413bf5
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x413bf5
push eax
call fcn.00403e80
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00403fe0
add edi, 0x10
mov dword [esp + 0x10], edi
jmp 0x413c03
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00404330
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jne 0x413c31
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004520b0
add esp, 0x14
cmp eax, 1
jne 0x413c31
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x413c47
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x10]
mov ecx, 1
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x413c67
push 0
lea ecx, [esp + 0x14]
call fcn.00404140
mov eax, dword [esp + 0x10]
push eax
call fcn.0041dec0
add esp, 4
test eax, eax
je 0x413c9d
mov eax, dword [esp + 0x10]
mov edx, 1
sub edx, dword [eax - 4]
or edx, dword [eax - 8]
jge 0x413d47
push 0
lea ecx, [esp + 0x14]
call fcn.00404140
mov eax, dword [esp + 0x10]
jmp 0x413d47
mov eax, dword [esp + 0xc]
push 0x5c
push eax
call fcn.004556a0
add esp, 8
test eax, eax
je 0x413d17
sub eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jle 0x413d17
inc eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00415580
mov ecx, dword [eax]
mov esi, dword [esp + 0xc]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x413d0e
cmp dword [esi + 0xc], 0
jl 0x413d00
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x413d00
push eax
call fcn.00403e80
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00403fe0
add edi, 0x10
mov dword [esp + 0xc], edi
jmp 0x413d0e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00404330
lea ecx, [esp + 0x14]
call fcn.00403df0
push 0xa
push str.uninst.exe
lea ecx, [esp + 0x14]
call fcn.00417450
mov eax, dword [esp + 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x413d47
push 0
lea ecx, [esp + 0x10]
call fcn.00404140
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x10]
call fcn.00403df0
lea ecx, [esp + 0xc]
call fcn.00403df0
lea ecx, [esp + 0x24]
call fcn.0041c450
lea ecx, [esp + 0x1c]
call fcn.004334e0
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004520a0
mov esp, ebp
pop ebp
ret 8