Function at 0x40b530
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542258
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x593dc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
xor eax, eax
mov edi, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea esi, [ebp - 0x34]
mov dword [ebp - 4], eax
call fcn.004095f0
mov eax, dword [eax]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x44]
call fcn.0040e8e0
test eax, eax
mov eax, dword [ebp - 0x34]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b5b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b712
xor ecx, ecx
xor eax, eax
mov word [ebp - 0x22], cx
mov word [ebp - 0x14], ax
mov eax, dword [edi]
mov edx, 0x6e
mov word [ebp - 0x24], dx
mov dword [ebp - 0x30], 0x610043
mov dword [ebp - 0x2c], 0x740070
mov dword [ebp - 0x28], 0x6f0069
mov dword [ebp - 0x20], 0x6f0053
mov dword [ebp - 0x1c], 0x720075
mov dword [ebp - 0x18], 0x650063
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x64
or ecx, edx
jge 0x40b616
push 0x64
mov ecx, edi
call fcn.004023c0
mov esi, dword [edi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x44]
push esi
lea ecx, [ebp - 0x48]
push ecx
push 0
lea edx, [ebp - 0x30]
push edx
push eax
mov dword [ebp - 0x34], 0xc8
call ebx
test eax, eax
jne 0x40b65a
mov eax, dword [ebp - 0x48]
cmp eax, 1
je 0x40b64b
cmp eax, 2
jne 0x40b65a
test esi, esi
je 0x40b65a
cmp dword [ebp - 0x34], 0
jne 0x40b65a
xor ecx, ecx
mov word [esi], cx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40b675
push ecx
push eax
call fcn.0051e211
add esp, 8
test eax, eax
js 0x40b73e
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x40b73e
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
mov edi, dword [ebp - 0x38]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [edi]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x64
or edx, eax
jge 0x40b6ab
push 0x64
mov ecx, edi
call fcn.004023c0
mov esi, dword [edi]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x44]
push esi
lea edx, [ebp - 0x38]
push edx
push 0
lea eax, [ebp - 0x20]
push eax
push ecx
mov dword [ebp - 0x34], 0xc8
call ebx
test eax, eax
jne 0x40b6e9
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x40b6da
cmp eax, 2
jne 0x40b6e9
test esi, esi
je 0x40b6e9
cmp dword [ebp - 0x34], 0
jne 0x40b6e9
xor edx, edx
mov word [esi], dx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40b700
push ecx
push eax
call fcn.0051e211
add esp, 8
test eax, eax
js 0x40b73e
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x40b73e
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40b720
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051d79f
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402460
int3