Function at 0x10012f41
Capabilities:
Link many functions at runtime

Disassembly:
push 0xf4
mov eax, 0x1005f2c4
call fcn.10046e1e
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x6c], eax
cmp eax, ecx
je 0x10012f8c
cmp dword [ebp + 0xc], ecx
jbe 0x10012f8c
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x2c]
call fcn.10012301
test al, al
jne 0x10012f94
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.10003982
xor eax, eax
call fcn.10046e68
ret
push str.Crypt32.dll
lea esi, [ebp - 0x48]
call fcn.1000bc8f
mov eax, esi
lea ebx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10012382
xor ebx, ebx
push 1
xor edi, edi
mov byte [ebp - 4], bl
call fcn.10003982
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10012fc9
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x70], edi
cmp edi, ebx
je 0x10012f80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptQueryObject
push edi
call esi
push str.CryptMsgGetParam
push edi
mov dword [ebp - 0x90], eax
call esi
push str.CryptMsgClose
push edi
mov dword [ebp - 0x50], eax
call esi
push str.CertFindCertificateInStore
push edi
mov dword [ebp - 0x68], eax
call esi
push str.CertFreeCertificateContext
push edi
mov dword [ebp - 0x74], eax
call esi
push str.CertCloseStore
push edi
mov dword [ebp - 0x88], eax
call esi
push str.CertGetNameStringW
push edi
mov dword [ebp - 0x80], eax
call esi
push 0x6c
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0xfc]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x100], ebx
call fcn.100464a0
xor eax, eax
add esp, 0xc
push ebx
lea edi, [ebp - 0x78]
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push 2
push 0x400
lea eax, [ebp - 0x7c]
push eax
push 2
mov dword [ebp - 0x54], ebx
call dword [ebp - 0x90]
test eax, eax
je 0x100131bb
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 6
push dword [ebp - 0x4c]
call dword [ebp - 0x50]
test eax, eax
je 0x100131bb
push dword [ebp - 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov esi, eax
cmp esi, ebx
je 0x100131bb
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push 6
push dword [ebp - 0x4c]
call dword [ebp - 0x50]
test eax, eax
je 0x100131b4
mov eax, dword [esi + 4]
mov dword [ebp - 0xe8], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xe4], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xfc], eax
mov eax, dword [esi + 0x10]
push ebx
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x100]
push eax
push 0xb0000
push ebx
push 0x10001
push dword [ebp - 0x58]
call dword [ebp - 0x74]
mov dword [ebp - 0x50], eax
cmp eax, ebx
je 0x100131b4
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
cmp eax, 1
je 0x100131ab
add eax, eax
push eax
push 0x40
call edi
push dword [ebp - 0x54]
mov edi, eax
push edi
push ebx
push ebx
push 4
push dword [ebp - 0x50]
call dword [ebp - 0x60]
cmp eax, 1
je 0x100131a0
mov ecx, str.Tencent_Technology_Shenzhen__Company_Limited
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10013190
cmp dx, bx
je 0x1001318c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10013190
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x1001316a
xor eax, eax
jmp 0x10013195
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100131a0
mov dword [ebp - 0x5c], 1
cmp edi, ebx
je 0x100131ab
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x50]
call dword [ebp - 0x88]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x58], ebx
je 0x100131ca
push ebx
push dword [ebp - 0x58]
call dword [ebp - 0x80]
mov dword [ebp - 0x58], ebx
cmp dword [ebp - 0x4c], ebx
je 0x100131d8
push dword [ebp - 0x4c]
call dword [ebp - 0x68]
mov dword [ebp - 0x4c], ebx
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.10003982
mov eax, dword [ebp - 0x5c]
jmp 0x10012f8e