Function at 0x401e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x900
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xfe
xor ebx, ebx
lea ecx, [ebp - 0x162]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x164], ax
call fcn.004238b0
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
lea ecx, [ebx + 0x40]
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
lea ecx, [ebx + 0x40]
lea edi, [ebp - 0x364]
add esp, 0xc
rep stosd dword es:[edi], eax
xor eax, eax
jmp 0x401f00
movzx ecx, word [eax + str.tztufn_dvssfoudpouspmtfu_tfswjdft_Xjo.Xjo8]
mov word [ebp + eax - 0x264], cx
add eax, 2
cmp cx, bx
jne 0x401f00
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.00402250
push 0x1fe
lea eax, [ebp - 0x8f2]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x8f4], dx
call fcn.004238b0
add esp, 0x14
mov dword [ebp - 0x8f8], ebx
xor eax, eax
movzx ecx, word [ebp + eax - 0x364]
mov word [ebp + eax - 0x8f4], cx
add eax, 2
cmp cx, bx
jne 0x401f50
lea ecx, [ebp - 0x8f8]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x8f4]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401fad
mov eax, dword [ebp - 0x8f8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push 0x18e
lea edx, [ebp - 0x4f2]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x4f4], cx
call fcn.004238b0
push 0x1fe
lea ecx, [ebp - 0x6f2]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x8fc], 1
mov word [ebp - 0x6f4], ax
call fcn.004238b0
add esp, 0x18
mov dword [ebp - 0x900], 0x200
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.SerialNumber]
mov word [ebp + eax - 0x4f4], cx
add eax, 2
cmp cx, bx
jne 0x402000
lea edx, [ebp - 0x900]
push edx
lea eax, [ebp - 0x6f4]
push eax
mov eax, dword [ebp - 0x8f8]
lea ecx, [ebp - 0x8fc]
push ecx
push ebx
lea edx, [ebp - 0x4f4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x402067
mov ecx, dword [ebp - 0x8f8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x8f8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402080
movzx ecx, word [ebp + eax - 0x6f4]
mov word [ebp + eax - 0x164], cx
add eax, 2
cmp cx, bx
jne 0x402080
lea eax, [ebp - 0x164]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4020a1
sub eax, edx
sar eax, 1
cmp eax, 0xe
jne 0x402239
xor eax, eax
lea ecx, [ebp - 0x24]
push ecx
push esi
mov byte [ebp - 0x14], bl
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x44], bl
mov dword [ebp - 0x43], eax
mov dword [ebp - 0x3f], eax
mov dword [ebp - 0x3b], eax
mov byte [ebp - 0x34], bl
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov word [ebp - 0x27], ax
mov word [ebp - 0x64], ax
mov dword [ebp - 0x62], eax
mov dword [ebp - 0x5e], eax
mov dword [ebp - 0x5a], eax
mov dword [ebp - 0x56], eax
mov dword [ebp - 0x52], eax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
call fcn.004098d0
push 4
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0041c0b0
push 4
lea ecx, [ebp - 0x1f]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0041c0b0
push 4
lea eax, [ebp - 0x1a]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0041c0b0
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x40
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x40
lea edi, [ebp - 0x364]
add esp, 0x2c
rep stosd dword es:[edi], eax
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + str.5:12.6CWI.3:_N]
mov word [ebp + eax - 0x264], cx
add eax, 2
cmp cx, bx
jne 0x402180
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.00402250
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x364]
push eax
call fcn.0041be77
add esp, 0x10
test eax, eax
jne 0x4021d9
pop edi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x14c], 0x5a
je 0x4021c4
lea ebx, [ebp - 0x14]
call fcn.00401e40
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x44]
mov ecx, ebx
call fcn.00401a70
add esp, 4
test eax, eax
je 0x402239
lea edx, [ebp - 0x64]
push edx
lea ebx, [ebp - 0x34]
call fcn.00409950
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0041be77
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffc
pop edi
add eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret