Function at 0x432010
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 0x43207d
cmp word [esi], 0
jne 0x432082
mov esi, 0x628fa4
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0x400
push 0
push eax
call fcn.004d00d0
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 0x4321b8
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 0x4321b8
cmp word [ebp - 0x810], ax
je 0x4321a4
lea esi, [ebp - 0x810]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x432105
sub esi, ecx
sar esi, 1
jns 0x432126
mov eax, dword [ebp - 0x848]
xor edi, edi
mov dword [ebp - 0x818], eax
jmp 0x432172
mov edi, 2
cmp esi, edi
jle 0x432136
nop
add edi, edi
cmp edi, esi
jl 0x432130
lea eax, [edi*2 + 2]
push eax
push 0
call fcn.004d2e2e
add esp, 8
mov dword [ebp - 0x818], eax
test eax, eax
je 0x432165
xor ecx, ecx
mov dword [ebp - 0x848], eax
mov word [eax], cx
mov dword [ebp - 0x840], edi
jmp 0x432171
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.004d9331
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 0x4321ca
push dword [ebp - 0x81c]
mov edi, dword [ebp - 0x848]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4321ca
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 0x4321e7
push eax
call fcn.004d2e13
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 0x43220e
push eax
call fcn.004d2e13
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.004324b0
mov eax, dword [ebp - 0x85c]
add esp, 0x14
test eax, eax
je 0x432266
cmp word [eax], 0
jne 0x43226b
mov eax, 0x628fa4
push eax
lea ecx, [ebp - 0x834]
call fcn.00406e30
test eax, eax
je 0x4323da
push ecx
lea ecx, [ebp - 0x834]
call fcn.00407000
mov edx, eax
test edx, edx
je 0x4322ac
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432296
sub ecx, esi
je 0x4322ac
push edx
call fcn.004dad15
add esp, 4
jmp 0x4322ae
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 0x4322cc
cmp word [eax], 0
jne 0x4322d1
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 0x432398
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432380
sub ecx, esi
je 0x432398
push edx
call fcn.004dad15
add esp, 4
mov esi, eax
jmp 0x43239a
xor esi, esi
sub esp, 0x14
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00406930
mov ecx, esi
call fcn.00432c50
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.00432910
mov esi, dword [ebp - 0x834]
add esp, 0x28
jmp 0x432403
mov esi, dword [ebp - 0x834]
test esi, esi
je 0x4323ec
cmp word [esi], 0
mov eax, esi
jne 0x4323f1
mov eax, 0x628fa4
push dword [ebp - 0x830]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.00406c40
test esi, esi
je 0x432410
push esi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x828]
test eax, eax
je 0x432423
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x85c]
test eax, eax
je 0x432436
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x850]
test eax, eax
je 0x432449
push eax
call fcn.004d2e13
add esp, 4
test edi, edi
je 0x432456
push edi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x43246d
push eax
call fcn.004d2e13
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 0x43248b
push eax
call fcn.004d2e13
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.004cdf2e
mov esp, ebp
pop ebp
ret