Function at 0x4d5940
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6956a8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x32], 0
mov dword [ebp - 0x38], 0
call fcn.004e8900
mov dword [ebp - 4], 0
call fcn.004d8c90
test al, al
mov ecx, 0x20
mov edx, 0x40
cmovne ecx, edx
je 0x4d59b7
xor eax, eax
cmp ecx, edx
cmovne ecx, eax
mov eax, dword [ebp - 0x38]
mov dword [eax], 0
cmp ecx, edx
jne 0x4d59ca
mov dword [eax], 0x100
push 0x17
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x68]
push str.SOFTWARETENCENTWeChat
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
call fcn.00405b20
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
push eax
push reloc.gdiplus.dll_Ordinal_1
lea ecx, [ebp - 0x38]
call fcn.004e8b20
mov byte [ebp - 0x31], al
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00405ac0
cmp byte [ebp - 0x31], 0
mov byte [ebp - 4], 0
je 0x4d5d60
push 0xc
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x50]
push str.FileSavePath
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00405b20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x68]
push 0x17
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push str.SOFTWARETENCENTWeChat
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
call fcn.00405b20
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x68]
push eax
push reloc.gdiplus.dll_Ordinal_1
lea ecx, [ebp - 0x38]
call fcn.004e8be0
mov byte [ebp - 0x31], al
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 8
call fcn.00405ac0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xc
call fcn.00405ac0
cmp byte [ebp - 0x31], 0
mov byte [ebp - 4], 0
je 0x4d5d60
push 0x17
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x50]
push str.SOFTWARETENCENTWeChat
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00405b20
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x30], 0
mov eax, dword [esi + 4]
test eax, eax
jne 0x4d5b20
mov byte [ebp - 0x31], al
jmp 0x4d5b5d
push str.RegOpenKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x4d5b38
mov byte [ebp - 0x31], al
jmp 0x4d5b5d
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push ecx
or eax, 0x20019
lea ecx, [ebp - 0x50]
push eax
push 0
call fcn.00405860
push eax
push reloc.gdiplus.dll_Ordinal_1
call dword [ebp - 0x6c]
test eax, eax
sete byte [ebp - 0x31]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x11
call fcn.00405ac0
cmp byte [ebp - 0x31], 0
mov byte [ebp - 4], 0
je 0x4d5d60
cmp dword [ebp - 0x30], 0
je 0x4d5d60
xor eax, eax
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
push 0x6c1840
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00405b20
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x50]
push 0xc
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push str.FileSavePath
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00405b20
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
call fcn.004e9450
mov byte [ebp - 0x31], al
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x17
call fcn.00405ac0
cmp byte [ebp - 0x31], 0
mov byte [ebp - 4], 0x15
jne 0x4d5c53
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
test eax, eax
je 0x4d5c42
push str.RegCloseKey
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
je 0x4d5c42
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4d5c42
push ecx
call eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1b
call fcn.00405ac0
jmp 0x4d5d5c
cmp dword [ebp - 0x1c], 0
je 0x4d5d20
lea ecx, [ebp - 0x2c]
call fcn.00405860
mov edx, str.MyDocument:
mov ecx, eax
call fcn.004d6390
test al, al
jne 0x4d5d20
lea ecx, [ebp - 0x2c]
call fcn.004de0d0
test al, al
je 0x4d5d20
push 0xc
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x50]
push str.WeChat_Files
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00405b20
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x1f
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
call fcn.004e05c0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x20
cmp edi, esi
je 0x4d5d04
mov ecx, edi
call fcn.00405ac0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x21
call fcn.00405ac0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x25
call fcn.00405ac0
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x38]
mov byte [ebp - 0x32], 1
mov eax, dword [eax + 4]
test eax, eax
je 0x4d5d50
push str.RegCloseKey
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
je 0x4d5d50
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4d5d50
push ecx
call eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x29
call fcn.00405ac0
mov byte [ebp - 4], 0
cmp dword [edi + 0x10], 0
jne 0x4d5d78
push 0x24
push str._UserProfile_DocumentsWeChat_Files
mov ecx, edi
call fcn.00405b20
mov byte [ebp - 0x32], 1
push edi
push edi
call fcn.004d3050
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0041fec0
mov al, byte [ebp - 0x32]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret