Function at 0x4118b1
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x429d80
call sub.MSVCRT.dll__EH_prolog
push ecx
mov eax, 0x1054
call fcn.004142d0
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x18], edi
call fcn.004116c4
pop ecx
cmp eax, edi
pop ecx
je 0x4118ee
mov eax, dword [ebp - 0x18]
jmp 0x411bc3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x411917
push str.crypt32.dll
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
call fcn.00411508
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x40], ebx
jne 0x41191e
xor eax, eax
jmp 0x411bc3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptQueryObject
push ebx
call esi
push str.CryptMsgGetParam
push ebx
mov dword [ebp - 0x44], eax
call esi
push str.CryptDecodeObject
push ebx
mov dword [ebp - 0x24], eax
call esi
push str.CertCreateCertificateContext
push ebx
mov dword [ebp - 0x18], eax
call esi
push str.CertRDNValueToStrA
push ebx
mov dword [ebp - 0x4c], eax
call esi
push str.CertFindRDNAttr
push ebx
mov dword [ebp - 0x38], eax
call esi
push str.CertFreeCertificateContext
push ebx
mov dword [ebp - 0x34], eax
call esi
push str.CryptMsgClose
push ebx
mov dword [ebp - 0x48], eax
call esi
push str.CertCloseStore
push ebx
mov dword [ebp - 0x50], eax
call esi
cmp dword [ebp - 0x44], edi
mov dword [ebp - 0x58], eax
je 0x411bb9
cmp dword [ebp - 0x24], edi
je 0x411bb9
cmp dword [ebp - 0x18], edi
je 0x411bb9
cmp dword [ebp - 0x4c], edi
je 0x411bb9
cmp dword [ebp - 0x38], edi
je 0x411bb9
cmp dword [ebp - 0x34], edi
je 0x411bb9
cmp dword [ebp - 0x48], edi
je 0x411bb9
cmp dword [ebp - 0x50], edi
je 0x411bb9
cmp eax, edi
je 0x411bb9
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.004113d9
cmp eax, edi
je 0x411b7f
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
mov ebx, 0x400
push 2
push ebx
mov dword [ebp - 0x64], edi
push dword [ebp + 8]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], edi
push 1
call dword [ebp - 0x44]
cmp eax, edi
je 0x411b7f
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], edi
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
push 0xb
mov dword [ebp - 0x60], 4
push dword [ebp - 0x14]
call dword [ebp - 0x24]
cmp eax, edi
je 0x411b7f
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], edi
lea esi, [eax - 1]
lea eax, [ebp - 0x20]
push eax
push edi
push esi
push 0xc
push dword [ebp - 0x14]
call dword [ebp - 0x24]
cmp eax, edi
je 0x411b7f
mov eax, 0x800
cmp dword [ebp - 0x20], eax
ja 0x411b7f
push eax
lea eax, [ebp - 0x1064]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1064]
push eax
push esi
push 0xc
push dword [ebp - 0x14]
call dword [ebp - 0x24]
cmp eax, edi
je 0x411b7f
push dword [ebp - 0x20]
lea eax, [ebp - 0x1064]
mov esi, 0x10001
push eax
push esi
call dword [ebp - 0x4c]
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x411b7f
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov eax, dword [eax + 0xc]
push ecx
push edi
push edi
push dword [eax + 0x30]
push dword [eax + 0x34]
push 7
push esi
call dword [ebp - 0x18]
cmp eax, edi
je 0x411b7f
cmp dword [ebp - 0x2c], ebx
ja 0x411b7f
push ebx
lea eax, [ebp - 0x464]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov eax, dword [eax + 0xc]
push ecx
lea ecx, [ebp - 0x464]
push ecx
push edi
push dword [eax + 0x30]
push dword [eax + 0x34]
push 7
push esi
call dword [ebp - 0x18]
cmp eax, edi
je 0x411b7f
lea eax, [ebp - 0x464]
push eax
push str.2.5.4.3
call dword [ebp - 0x34]
mov esi, eax
cmp esi, edi
je 0x411b7f
push ebx
lea eax, [ebp - 0x864]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x864]
add esi, 8
push ebx
push eax
push esi
push 4
call dword [ebp - 0x38]
cmp eax, edi
jbe 0x411b7f
lea eax, [ebp - 0x864]
push str.Tencent_Technology_Shenzhen__Company_Limited
push eax
call sub.MSVCRT.dll_strcmp
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [ebp - 0x30], eax
jmp 0x411b7f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x40], edi
je 0x411b91
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x1c], edi
je 0x411b9c
push dword [ebp - 0x1c]
call dword [ebp - 0x48]
cmp dword [ebp - 0x14], edi
je 0x411ba7
push dword [ebp - 0x14]
call dword [ebp - 0x50]
cmp dword [ebp - 0x28], edi
je 0x411bb4
push 1
push dword [ebp - 0x28]
call dword [ebp - 0x58]
mov eax, dword [ebp - 0x30]
jmp 0x411bc3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4