Function at 0x40b0b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x104c
call fcn.00418c10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40b0ff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.crypt32.dll
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x4c], ebx
jne 0x40b131
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptQueryObject
push ebx
call esi
push str.CryptMsgGetParam
push ebx
mov edi, eax
call esi
push str.CryptDecodeObject
push ebx
mov dword [ebp - 0x1c], eax
call esi
push str.CertCreateCertificateContext
push ebx
mov dword [ebp - 0x40], eax
call esi
push str.CertRDNValueToStrA
push ebx
mov dword [ebp - 0x30], eax
call esi
push str.CertFindRDNAttr
push ebx
mov dword [ebp - 0x2c], eax
call esi
push str.CertFreeCertificateContext
push ebx
mov dword [ebp - 0x38], eax
call esi
push str.CryptMsgClose
push ebx
mov dword [ebp - 0x28], eax
call esi
push str.CertCloseStore
push ebx
mov dword [ebp - 0x3c], eax
call esi
test edi, edi
mov dword [ebp - 0x50], eax
je 0x40b44a
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40b44a
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x40b44a
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x40b44a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40b44a
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x40b44a
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40b44a
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x40b44a
test eax, eax
je 0x40b44a
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
call fcn.0040af30
xor ecx, ecx
cmp eax, ecx
je 0x40b3ff
lea edx, [ebp - 0x14]
push ecx
push edx
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x48]
push eax
push edx
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x54]
push eax
push edx
push ecx
push 2
push 0x400
push esi
push 1
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x48], ecx
call edi
test eax, eax
je 0x40b3ff
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x34]
push eax
push ecx
push 0
push 0xb
push edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x5c], 4
call dword [ebp - 0x1c]
test eax, eax
je 0x40b3ff
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
lea esi, [eax - 1]
push ecx
push 0
push esi
push 0xc
push edx
call dword [ebp - 0x1c]
test eax, eax
je 0x40b3ff
cmp dword [ebp + 8], 0x800
ja 0x40b3ff
mov edx, dword [ebp - 0x14]
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x105c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 8]
lea ecx, [ebp - 0x105c]
push eax
push ecx
push esi
push 0xc
push edx
call dword [ebp - 0x1c]
test eax, eax
je 0x40b3ff
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x105c]
push eax
push ecx
push 0x10001
call dword [ebp - 0x30]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40b3ff
mov edx, eax
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x40]
mov eax, dword [edx + 0xc]
push ecx
push 0
push 0
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
push edx
push eax
push 7
push 0x10001
call esi
test eax, eax
je 0x40b3ff
cmp dword [ebp - 0x20], 0x400
ja 0x40b3ff
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x45c]
lea edx, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 0xc]
lea ecx, [ebp - 0x45c]
push ecx
push 0
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
push edx
push eax
push 7
push 0x10001
call esi
test eax, eax
je 0x40b3ff
lea ecx, [ebp - 0x45c]
push ecx
push str.2.5.4.3
call dword [ebp - 0x38]
mov edx, eax
test edx, edx
je 0x40b3ff
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x85c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x85c]
add edx, 8
push eax
push edx
push 4
call dword [ebp - 0x2c]
test eax, eax
jbe 0x40b3ff
mov esi, str.Tencent_Technology_Shenzhen__Company_Limited
lea edi, [ebp - 0x85c]
mov cl, byte [edi]
mov dl, byte [esi]
mov al, cl
cmp cl, dl
jne 0x40b3de
test al, al
je 0x40b3d0
mov dl, byte [edi + 1]
mov cl, byte [esi + 1]
mov al, dl
cmp dl, cl
jne 0x40b3de
add edi, 2
add esi, 2
test al, al
jne 0x40b3ac
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x24], ecx
jmp 0x40b3ff
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x24], ecx
jmp 0x40b3ff
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x40b411
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b41c
push eax
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b427
push eax
call dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40b434
push 1
push eax
call dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4