Function at 0x4025d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c22b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov eax, dword [0x410058]
push ebx
push esi
push edi
mov dword [esp + 0x32c], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x12c]
push str.SoftwareNHN_Corporation_s
xor edi, edi
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], 0x400
mov byte [esp + 0x2c], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 1
push edi
lea eax, [esp + 0x134]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402687
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push edi
push str.RunOnce
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40268e
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4027d2
mov ebx, dword [str.TAHA]
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x20]
push 0x40d3e0
push edx
mov dword [esp + 0x344], edi
call fcn.0040321f
mov esi, eax
add esp, 8
cmp esi, edi
je 0x402797
test esi, esi
jne 0x4026c7
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x4026d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], eax
mov edi, eax
mov ecx, dword [ebx - 0xc]
cmp ecx, 1
lea eax, [ebx - 0xc]
mov dword [esp + 0x18], eax
jg 0x4026e8
cmp edi, dword [ebx - 4]
jle 0x402729
mov ecx, dword [0x410044]
add ebx, 0xfffffff4
cmp ebx, ecx
je 0x402717
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40270d
mov eax, dword [esp + 0x18]
push eax
call fcn.00403a67
add esp, 4
mov ecx, dword [str.TAHA]
mov dword [esp + 0x10], ecx
push edi
lea ecx, [esp + 0x14]
call fcn.004010a0
test eax, eax
mov ebx, dword [esp + 0x10]
je 0x402746
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov byte [eax + ebx], 0
mov eax, dword [ebx - 8]
test eax, eax
je 0x40277e
mov edx, dword [ebx - 0xc]
test edx, edx
lea eax, [ebx - 0xc]
push ecx
mov dword [esp + 0x1c], esp
mov ecx, esp
jl 0x402769
push eax
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x402776
mov eax, dword [str.TAHA]
push ebx
mov dword [ecx], eax
call fcn.004012f0
call fcn.00402240
add esp, 4
push 0x40d3e0
push 0
call fcn.0040321f
mov esi, eax
add esp, 8
test esi, esi
jne 0x4026c7
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x410044]
lea edx, [ebx - 0xc]
cmp edx, eax
mov dword [esp + 0x33c], 0xffffffff
je 0x4027d0
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4027d0
push esi
call fcn.00403a67
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x334]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x32c]
call fcn.004032fb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret