Function at 0x432980
Capabilities:
Check if file exists
Get file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb04d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00406930
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406930
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4329d4
cmp word [esi], 0
jne 0x4329d9
mov esi, 0x628fa4
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x4329e6
cmp word [edi], 0
jne 0x4329eb
mov edi, 0x628fa4
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareTencentWeChat
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432a3b
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432a10
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x432a52
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
test eax, eax
je 0x432a7e
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x432a95
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
test eax, eax
je 0x432ab3
push eax
call fcn.004d2e43
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.0042e970
push str.All_Users
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00406cf0
push str.config_
lea ecx, [ebp - 0x24]
call fcn.00406cf0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x432af9
cmp word [eax], 0
je 0x432af9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432af9
shr eax, 4
and al, 1
jne 0x432b05
lea ecx, [ebp - 0x24]
call fcn.00432d70
test al, al
je 0x432b60
push str.configEx.ini
lea ecx, [ebp - 0x24]
call fcn.00406cf0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x432b21
cmp word [esi], 0
mov edx, esi
jne 0x432b26
mov edx, 0x628fa4
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x432b33
cmp word [eax], 0
jne 0x432b38
mov eax, 0x628fa4
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x432b45
cmp word [ecx], 0
jne 0x432b4a
mov ecx, 0x628fa4
push edx
push eax
push ecx
push 0x62cba8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x432b63
mov bl, 1
jmp 0x432b65
mov esi, dword [ebp - 0x24]
xor bl, bl
test esi, esi
je 0x432b72
push esi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x432b82
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x432b99
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 0x432bc5
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x432bdc
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x20], 0
test eax, eax
je 0x432bfa
push eax
call fcn.004d2e43
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret