Function at 0x404260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x31c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x32c]
push edi
test ecx, ecx
mov dword [esi + 8], 0
mov dword [esi + 4], 1
je 0x404571
mov edx, dword [esp + 0x334]
test edx, edx
je 0x404571
mov eax, dword [esp + 0x338]
test eax, eax
je 0x404571
lea ebp, [esi + 0x14]
push eax
push ebp
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x22d]
mov byte [esp + 0x22c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x10]
lea ebx, [esi + 0x17]
stosw word es:[edi], ax
push ebx
push 0x1f6
stosb byte es:[edi], al
call sub.LDSERV.dll_Ordinal_374
test eax, eax
je 0x404571
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x117]
push edi
push 0x1f7
call sub.LDSERV.dll_Ordinal_374
test eax, eax
je 0x404571
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x217]
push eax
push 0x1fe
call sub.LDSERV.dll_Ordinal_374
test eax, eax
je 0x404571
lea ecx, [esp + 0x12c]
push ecx
mov ecx, dword [esi + 0x10]
push 0x1f9
call sub.LDSERV.dll_Ordinal_374
test eax, eax
je 0x404571
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x22c]
push edx
push 0x1fa
call sub.LDSERV.dll_Ordinal_374
test eax, eax
je 0x404571
push 0x418
lea ecx, [esi + 0x420]
call sub.LDSERV.dll_Ordinal_446
test eax, eax
je 0x404571
lea ecx, [esi + 0x46c]
call sub.LDSERV.dll_Ordinal_332
test eax, eax
je 0x404571
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x20019
push 0
push 0x407910
push 0
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404427
mov ecx, 0x40
lea edi, [esp + 0x29]
mov byte [esp + 0x28], al
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x18]
push edx
stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push ebp
push ecx
mov dword [esp + 0x28], 0x104
call edi
test eax, eax
jne 0x40441a
lea edx, [esp + 0x28]
lea eax, [esi + 0x317]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40442d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4044b7
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x138]
push 0
mov ebx, 4
push edx
push eax
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x40447d
mov dword [esi + 0x464], 1
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x238]
push 0
push eax
push ecx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x4044ac
mov dword [esi + 0x468], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 0x41c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x404571
mov al, byte [esi + 0x317]
lea ebx, [esi + 0x317]
test al, al
je 0x4044eb
push 0
push ebx
call sub.LDSERV.dll_Ordinal_391
add esp, 8
test eax, eax
jne 0x404552
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x28]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov ecx, esi
call fcn.00404050
test eax, eax
je 0x404552
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00401cc0
test eax, eax
je 0x404552
mov ecx, esi
call fcn.00404ba0
test eax, eax
je 0x404552
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret 0xc
mov ecx, esi
call fcn.00404ba0
test eax, eax
je 0x404571
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret 0xc