Function at 0x4091e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c888
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x220], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
xor eax, eax
mov word [ebp - 0x8c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], eax
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
push 0xf
push 0x587058
lea ecx, [ebp - 0x44]
call fcn.00406c80
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x44]
call fcn.00406650
push 1
push 0x587078
lea ecx, [ebp - 0x44]
call fcn.00406760
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4092c3
lea eax, [ebp - 0x44]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
cmp dword [ebx + 0x14], 8
jb 0x4092d6
mov eax, dword [ebx]
jmp 0x4092d8
mov eax, ebx
xor ecx, ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x234], 0x10
mov dword [ebp - 0x230], eax
push 0x2c
push ecx
lea eax, [ebp - 0x270]
push eax
call fcn.00544020
add esp, 0xc
mov dword [ebp - 0x274], 0x30
mov dword [ebp - 0x268], 2
mov dword [ebp - 0x260], 1
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x264], 1
lea eax, [ebp - 0x234]
mov dword [ebp - 0x25c], eax
cmp byte [edi + 0x6c], 0
jne 0x40936b
mov dword [ebp - 0x264], 0
push str.VerifyLibrary:_certificate_revocation_checking_is_disabled_n
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4093b1
mov dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x218]
push eax
call sub.SensApi.dll_IsNetworkAlive
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4093a0
call edi
test eax, eax
jne 0x4093a0
lea eax, [ebp - 0x24]
push eax
push str.http:__www.msftncsi.com_ncsi.txt
call sub.SensApi.dll_IsDestinationReachableW
test eax, eax
je 0x4093b1
mov dword [ebp - 0x264], 0
push str.VerifyLibrary:_system_is_offline___certificate_revocation_wont_be_checked_n
call esi
mov eax, dword [ebp - 0x220]
cmp byte [eax + 0x6d], 0
je 0x4094a9
mov dword [ebp - 0x24], 0xaac56b
mov dword [ebp - 0x20], 0x11d0cd44
mov dword [ebp - 0x1c], 0xc000c28c
mov dword [ebp - 0x18], 0xee95c24f
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
call sub.WINTRUST.dll_WinVerifyTrust
mov esi, eax
mov dword [ebp - 0x258], 2
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
call sub.WINTRUST.dll_WinVerifyTrust
test esi, esi
je 0x40945b
push str.VerifyLibrary:_trust_verification_failed_n
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.004038c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004038c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.004038c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004038c0
xor al, al
jmp 0x409c76
test eax, eax
je 0x4094a9
push str.VerifyLibrary:_error_encountered_while_cleaning_up_after_WinVerifyTrust_n
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.004038c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004038c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.004038c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004038c0
xor al, al
jmp 0x409c76
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0
mov byte [ebp - 0x1f5], 1
mov byte [ebp - 4], 4
cmp dword [ebx + 0x14], 8
jb 0x4094e6
mov eax, dword [ebx]
jmp 0x4094e8
mov eax, ebx
push 0
lea ecx, [ebp - 0x1fc]
push ecx
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x23c]
push ecx
push 0
push 2
push 0x400
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x409596
call edi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00423a00
add esp, 8
mov esi, eax
mov byte [ebp - 4], 5
push str.Checking_certificate_of
lea ecx, [ebp - 0x1f4]
call fcn.004029a0
mov byte [ebp - 4], 6
push ebx
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00401d70
mov byte [ebp - 4], 7
push 0x5872c4
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00401df0
mov byte [ebp - 4], 8
push esi
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.00401cb0
add esp, 0x24
push 0x5dbcfc
lea eax, [ebp - 0x1dc]
push eax
call fcn.00543656
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 6
push dword [ebp - 0x1fc]
mov ebx, dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
call ebx
test eax, eax
jne 0x409603
call edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00423a00
add esp, 8
mov esi, eax
mov byte [ebp - 4], 9
push str.CryptMsgGetParam_first_call:
lea ecx, [ebp - 0xbc]
call fcn.004029a0
mov byte [ebp - 4], 0xa
push esi
push eax
lea eax, [ebp - 0x1c4]
push eax
call fcn.00401cb0
add esp, 0xc
push 0x5dbcfc
lea eax, [ebp - 0x1c4]
push eax
call fcn.00543656
push dword [ebp - 0x214]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x40963e
push str.Failed_to_allocate_memory_for_signature_processing
lea ecx, [ebp - 0x1ac]
call fcn.004029a0
push 0x5dbcfc
lea eax, [ebp - 0x1ac]
push eax
call fcn.00543656
lea eax, [ebp - 0x214]
push eax
push esi
push 0
push 6
push dword [ebp - 0x1fc]
call ebx
test eax, eax
jne 0x4096a4
call edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00423a00
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0xb
push str.CryptMsgGetParam:
lea ecx, [ebp - 0xbc]
call fcn.004029a0
mov byte [ebp - 4], 0xc
push esi
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.00401cb0
add esp, 0xc
push 0x5dbcfc
lea eax, [ebp - 0x194]
push eax
call fcn.00543656
push 0x70
push 0
lea eax, [ebp - 0x2e4]
push eax
call fcn.00544020
add esp, 0xc
mov eax, dword [esi + 4]
mov dword [ebp - 0x2cc], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2e0], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2dc], eax
push 0
lea eax, [ebp - 0x2e4]
push eax
push 0xb0000
push 0
push 0x10001
push dword [ebp - 0x204]
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov ebx, eax
mov dword [ebp - 0x218], ebx
test ebx, ebx
jne 0x409756
call edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00423a00
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0xd
push str.Certificate_context:
lea ecx, [ebp - 0xbc]
call fcn.004029a0
mov byte [ebp - 4], 0xe
push esi
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00401cb0
add esp, 0xc
push 0x5dbcfc
lea eax, [ebp - 0x17c]
push eax
call fcn.00543656
push 0
push 0
push 3
mov eax, dword [ebx + 0xc]
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov esi, eax
cmp esi, 1
ja 0x409793
push str.Getting_x509_field_size_problem.
lea ecx, [ebp - 0x164]
call fcn.004029a0
push 0x5dbcfc
lea eax, [ebp - 0x164]
push eax
call fcn.00543656
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052bd85
add esp, 4
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 0xf
push esi
push dword [ebp - 0x208]
push 3
mov eax, dword [ebx + 0xc]
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
cmp eax, 1
ja 0x4097f6
push str.Failed_to_get_x509_filed_infos_from_certificate.
lea ecx, [ebp - 0x14c]
call fcn.004029a0
push 0x5dbcfc
lea eax, [ebp - 0x14c]
push eax
call fcn.00543656
push dword [ebp - 0x208]
lea ecx, [ebp - 0x74]
call fcn.00403ef0
mov dword [ebp - 0x200], 0
lea eax, [ebp - 0x200]
push eax
push 0
push 0x14
push ebx
mov esi, dword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
call esi
test eax, eax
jne 0x409874
call edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00423a00
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x10
push str.x509_property_not_found
lea ecx, [ebp - 0xbc]
call fcn.004029a0
mov byte [ebp - 4], 0x11
push esi
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00401cb0
add esp, 0xc
push 0x5dbcfc
lea eax, [ebp - 0x134]
push eax
call fcn.00543656
push dword [ebp - 0x200]
call fcn.0052bd85
add esp, 4
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x200]
push eax
push dword [ebp - 0x20c]
push 0x14
push ebx
call esi
test eax, eax
jne 0x4098f0
call edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00423a00
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x13
push str.Getting_certificate_property_problem.
lea ecx, [ebp - 0xbc]
call fcn.004029a0
mov byte [ebp - 4], 0x14
push esi
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00401cb0
add esp, 0xc
push 0x5dbcfc
lea eax, [ebp - 0x11c]
push eax
call fcn.00543656
push 1
push 3
lea ecx, [ebp - 0x394]
call fcn.00402a00
mov byte [ebp - 4], 0x15
xor ebx, ebx
mov dword [ebp - 0x224], ebx
cmp ebx, dword [ebp - 0x200]
jae 0x40996c
mov esi, dword [ebp - 0x20c]
push 0x4091d0
lea ecx, [ebp - 0x384]
call fcn.004040f0
mov edi, eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, 0x30
mov word [ecx + edi + 0x40], ax
movzx ecx, byte [esi + ebx]
push ecx
push 0x408310
push 0
push 2
lea eax, [ebp - 0x24]
push eax
call fcn.005164ac
push eax
push edi
call fcn.00401c40
add esp, 0x14
mov ecx, eax
call fcn.004040f0
mov ecx, eax
call fcn.00403f40
inc ebx
jmp 0x409905
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x394]
call fcn.00409060
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403e70
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2c]
call fcn.004038c0
push 0x587078
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00401e90
add esp, 0xc
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0xc0], 8
mov eax, dword [ebp - 0xd4]
jae 0x4099c5
lea eax, [ebp - 0xd4]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0
push 0
push 0
push 0
push 4
mov edi, dword [ebp - 0x218]
push edi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
mov ebx, eax
cmp ebx, 1
ja 0x409a3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00423a00
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x18
push str.Getting_data_size_problem.
lea ecx, [ebp - 0xbc]
call fcn.004029a0
mov byte [ebp - 4], 0x19
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00401cb0
add esp, 0xc
push 0x5dbcfc
lea eax, [ebp - 0x104]
push eax
call fcn.00543656
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052bd85
add esp, 4
mov dword [ebp - 0x210], eax
mov byte [ebp - 4], 0x1a
push ebx
push dword [ebp - 0x210]
push 0
push 0
push 4
push edi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
cmp eax, 1
ja 0x409ace
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00423a00
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x1b
push str.Cannot_get_certificate_info.
lea ecx, [ebp - 0xbc]
call fcn.004029a0
mov byte [ebp - 4], 0x1c
push esi
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.00401cb0
add esp, 0xc
push 0x5dbcfc
lea eax, [ebp - 0xec]
push eax
call fcn.00543656
push dword [ebp - 0x210]
lea ecx, [ebp - 0x8c]
call fcn.00403ef0
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x409af6
push eax
call fcn.0052bd8e
add esp, 4
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd4]
call fcn.004038c0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x394]
call fcn.00404120
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x409b2b
push eax
call fcn.0052bd8e
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x409b42
push eax
call fcn.0052bd8e
add esp, 4
mov dword [ebp - 4], 3
mov bl, byte [ebp - 0x1f5]
test bl, bl
je 0x409c09
lea eax, [ebp - 0x8c]
push eax
mov edi, dword [ebp - 0x220]
lea eax, [edi + 0x24]
push eax
call fcn.00401c70
add esp, 8
test al, al
je 0x409b82
xor bl, bl
push str.VerifyLibrary:_Invalid_certificate_display_name_n
call esi
jmp 0x409c09
lea eax, [ebp - 0x74]
push eax
lea eax, [edi + 0x3c]
push eax
call fcn.00401c70
add esp, 8
test al, al
je 0x409ba1
xor bl, bl
push str.VerifyLibrary:_Invalid_certificate_subject_n
call esi
jmp 0x409c09
lea eax, [ebp - 0x5c]
push eax
lea eax, [edi + 0x54]
push eax
call fcn.00401c70
add esp, 8
test al, al
je 0x409c09
xor bl, bl
push str.VerifyLibrary:_Invalid_certificate_key_id_n
call esi
jmp 0x409c09
mov eax, dword [ebp - 0x204]
test eax, eax
je 0x409c1c
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, dword [ebp - 0x1fc]
test eax, eax
je 0x409c2d
push eax
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x409c3e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.004038c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004038c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.004038c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004038c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 8