Function at 0x432080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5baf5e
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x820], ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x848], xmm0
mov dword [ebp - 0x838], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x834]
call fcn.00406930
mov esi, dword [ebp - 0x834]
test esi, esi
je 0x4320ed
cmp word [esi], 0
jne 0x4320f2
mov esi, 0x628fa4
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0x400
push 0
push eax
call fcn.004d0100
add esp, 0xc
lea eax, [ebp - 0x81c]
push eax
push 0xf003f
push 0
push str.SoftwareTencentWeChat
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432228
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push esi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x432228
cmp word [ebp - 0x810], ax
je 0x432214
lea esi, [ebp - 0x810]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x432175
sub esi, ecx
sar esi, 1
jns 0x432196
mov eax, dword [ebp - 0x848]
xor edi, edi
mov dword [ebp - 0x818], eax
jmp 0x4321e2
mov edi, 2
cmp esi, edi
jle 0x4321a6
nop
add edi, edi
cmp edi, esi
jl 0x4321a0
lea eax, [edi*2 + 2]
push eax
push 0
call fcn.004d2e5e
add esp, 8
mov dword [ebp - 0x818], eax
test eax, eax
je 0x4321d5
xor ecx, ecx
mov dword [ebp - 0x848], eax
mov word [eax], cx
mov dword [ebp - 0x840], edi
jmp 0x4321e1
mov eax, dword [ebp - 0x848]
mov dword [ebp - 0x818], eax
inc edi
push esi
lea ecx, [ebp - 0x810]
push ecx
push edi
push eax
call fcn.004d9361
mov edi, dword [ebp - 0x818]
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x844], esi
mov word [edi + esi*2], ax
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43223a
push dword [ebp - 0x81c]
mov edi, dword [ebp - 0x848]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43223a
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x848]
mov eax, dword [ebp - 0x834]
test eax, eax
je 0x432257
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x834], 0
mov eax, dword [ebp - 0x828]
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x830], 0
test eax, eax
je 0x43227e
push eax
call fcn.004d2e43
add esp, 4
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x85c]
call fcn.00406930
xorps xmm0, xmm0
mov dword [ebp - 0x824], 0
movups xmmword [ebp - 0x834], xmm0
sub esp, 0x14
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov ecx, esp
lea esi, [ebp - 0x834]
push eax
call fcn.00406930
mov ecx, esi
call fcn.00432520
mov eax, dword [ebp - 0x85c]
add esp, 0x14
test eax, eax
je 0x4322d6
cmp word [eax], 0
jne 0x4322db
mov eax, 0x628fa4
push eax
lea ecx, [ebp - 0x834]
call fcn.00406e30
test eax, eax
je 0x43244a
push ecx
lea ecx, [ebp - 0x834]
call fcn.00407000
mov edx, eax
test edx, edx
je 0x43231c
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432306
sub ecx, esi
je 0x43231c
push edx
call fcn.004dad45
add esp, 4
jmp 0x43231e
xor eax, eax
cmp eax, 0x64
lea ecx, [ebp - 0x85c]
lea edx, [ebp - 0x834]
cmovge ecx, edx
mov eax, dword [ecx]
test eax, eax
je 0x43233c
cmp word [eax], 0
jne 0x432341
mov eax, 0x628fa4
push dword [ecx + 4]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.00406c40
push ecx
lea ecx, [ebp - 0x834]
call fcn.00407000
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov edx, eax
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
movups xmmword [eax], xmm0
mov eax, esp
push ecx
lea ecx, [ebp - 0x85c]
mov byte [eax], 2
mov dword [eax + 8], edx
call fcn.00407000
sub esp, 0x10
mov ecx, esp
push ecx
mov byte [ecx], 2
mov dword [ecx + 8], eax
lea ecx, [ebp + 8]
call fcn.00407000
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
mov ecx, esp
push str.readRegAndConfig__s___regtype:_s_is_different_from_initype:_s
push str.Utils
mov byte [ecx], 2
mov dword [ecx + 8], eax
mov ecx, 2
push str.Utils::readRegAndConfig
push 0x5f0
call fcn.00403890
mov ecx, dword [ebp - 0x820]
add esp, 0x6c
call fcn.00407000
mov edx, eax
test edx, edx
je 0x432408
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4323f0
sub ecx, esi
je 0x432408
push edx
call fcn.004dad45
add esp, 4
mov esi, eax
jmp 0x43240a
xor esi, esi
sub esp, 0x14
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00406930
mov ecx, esi
call fcn.00432cc0
mov ecx, esp
push dword [ebp - 0x820]
call fcn.00406930
sub esp, 0x14
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00406930
call fcn.00432980
mov esi, dword [ebp - 0x834]
add esp, 0x28
jmp 0x432473
mov esi, dword [ebp - 0x834]
test esi, esi
je 0x43245c
cmp word [esi], 0
mov eax, esi
jne 0x432461
mov eax, 0x628fa4
push dword [ebp - 0x830]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.00406c40
test esi, esi
je 0x432480
push esi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x828]
test eax, eax
je 0x432493
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x85c]
test eax, eax
je 0x4324a6
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x850]
test eax, eax
je 0x4324b9
push eax
call fcn.004d2e43
add esp, 4
test edi, edi
je 0x4324c6
push edi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x4324dd
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp + 8], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
test eax, eax
je 0x4324fb
push eax
call fcn.004d2e43
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cdf5d
mov esp, ebp
pop ebp
ret