Function at 0x4036f0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xfc
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x403d06
cmp word [eax], bx
je 0x403d06
mov eax, dword [esp + 0x108]
cmp eax, ebx
je 0x403d06
cmp word [eax], bx
je 0x403d06
push ebp
push esi
push edi
mov ecx, 0x1b
xor eax, eax
lea edi, [esp + 0xa0]
mov dword [esp + 0x9c], ebx
push str.Crypt32.dll
rep stosd dword es:[edi], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x30], edi
jne 0x403790
push str.VerifyFileSignature:_Load_Crypt32.dll_error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403c26
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptQueryObject
push edi
call esi
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x4037b9
push str.VerifyFileSignature:_pCryptQueryObject_error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403c26
push str.CryptMsgGetParam
push edi
call esi
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x4037dc
push str.VerifyFileSignature:_pCryptMsgGetParam_error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403c26
push str.CertFindCertificateInStore
push edi
call esi
cmp eax, ebx
mov dword [esp + 0x68], eax
jne 0x4037ff
push str.VerifyFileSignature:_pCertFindCertificateInStore_error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403c26
push str.CertGetNameStringW
push edi
call esi
mov ebp, eax
cmp ebp, ebx
jne 0x403820
push str.VerifyFileSignature:_pCertGetNameStringW_error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403c26
push str.CryptMsgClose
push edi
call esi
cmp eax, ebx
mov dword [esp + 0x38], eax
jne 0x403843
push str.VerifyFileSignature:_pCryptMsgClose_error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403c26
push str.CertCloseStore
push edi
call esi
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x403866
push str.VerifyFileSignature:_pCertCloseStore_error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403c26
push str.CertFreeCertificateContext
push edi
call esi
cmp eax, ebx
mov dword [esp + 0x64], eax
jne 0x403889
push str.VerifyFileSignature:_pCertFreeCertificateContext_error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403c26
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0x58]
push edx
push eax
push ebx
push ebx
push 2
push 0x400
push ecx
push 1
call dword [esp + 0x48]
test eax, eax
jne 0x4038d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerifyFileSignature:CryptQueryObject___error_u_n
push ebx
call fcn.00403dc0
add esp, 0xc
jmp 0x403c26
cmp dword [esp + 0x4c], 0xa
je 0x4038ed
push str.VerifyFileSignature:_No_embedded_signature._n
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403c26
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push 6
push eax
call dword [esp + 0x28]
test eax, eax
je 0x403cec
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x403cec
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
add eax, 8
push eax
call edi
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x40393d
push str.VerifyFileSignature:malloc1_error._n
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403c10
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
push 6
push edx
call dword [esp + 0x28]
test eax, eax
je 0x403cd2
cmp dword [esp + 0x10], ebx
je 0x403cd2
mov eax, dword [esp + 0x1c]
push ebx
mov ecx, dword [eax + 4]
mov dword [esp + 0xb8], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0xbc], edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 0x10]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xa0]
push eax
push 0xb0000
push ebx
push 0x10001
push ecx
mov dword [esp + 0xbc], edx
call dword [esp + 0x80]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x4039cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerifyFileSignature:CertFindCertificateInStore___error2_u_n
push ebx
call fcn.00403dc0
jmp 0x403bee
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call ebp
lea edx, [eax + eax + 8]
mov dword [esp + 0x10], eax
push edx
call edi
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x28], edi
jne 0x403a00
push str.VerifyFileSignature:malloc2_error._n
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403bf1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ebx
push ebx
push 4
push ecx
call ebp
mov ebp, 1
mov dword [esp + 0x10], eax
cmp eax, ebp
ja 0x403a31
push str.VerifyFileSignature:CertGetNameString___error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403bf1
mov edx, dword [esp + 0x114]
push edx
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x403a5a
push str.VerifyFileSignature:_wcscmp_____0.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403bf1
push str.WinTrust.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x403a80
push str.VerifyFileSignature:_Load_WinTrust.dll_error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403bf1
push str.WinVerifyTrust
push eax
call esi
mov edx, eax
cmp edx, ebx
jne 0x403aa1
push str.VerifyFileSignature:_pWinVerifyTrust_error.
push ebx
call fcn.00403dc0
add esp, 8
jmp 0x403bf1
xor eax, eax
mov ecx, 0xc
mov dword [esp + 0x50], eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x54], eax
mov esi, dword [esp + 0x110]
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], 0x10
mov dword [esp + 0x5c], eax
mov al, 0xc2
mov byte [esp + 0x45], al
mov byte [esp + 0x49], al
xor eax, eax
mov dword [esp + 0x54], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
lea eax, [esp + 0x6c]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x3c]
push eax
push ecx
push ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x48], 0xaac56b
mov word [esp + 0x4c], 0xcd44
mov word [esp + 0x4e], 0x11d0
mov byte [esp + 0x50], 0x8c
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], 0xc0
mov byte [esp + 0x54], 0x4f
mov byte [esp + 0x56], 0x95
mov byte [esp + 0x57], 0xee
mov dword [esp + 0x78], 0x30
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], 2
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], 0x100
call edx
cmp eax, 0x800b0100
jg 0x403c91
je 0x403bbb
cmp eax, 0x80092026
je 0x403bab
cmp eax, 0x800b0004
jne 0x403c9c
push str.The_signature_is_present__but_not_trusted._n
push ebx
call fcn.00403e50
add esp, 8
jmp 0x403bf1
push str.CRYPT_E_SECURITY_SETTINGS___The_hash_representing_the_subject_or_the_publisher_wasnt_explicitly_trusted_by_the_admin_and_admin_policy_has_disabled_user_trust._No_signature__publisher_or_timestamp_errors._n
push ebx
call fcn.00403e50
add esp, 8
jmp 0x403bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x800b0100
je 0x403c86
cmp eax, 0x800b0003
je 0x403c86
cmp eax, 0x800b0001
je 0x403c86
push esi
push str.An_unknown_error_occurred_trying_to_verify_the_signature_of_the___s__file._n
push ebx
call fcn.00403e50
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x403bfe
push eax
call dword [esp + 0x68]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x403c10
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x403c22
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403c39
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x403c39
push eax
call ecx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x403c4e
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x403c4e
push 1
push eax
call ecx
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, ebx
je 0x403c5f
push eax
call esi
cmp edi, ebx
je 0x403c66
push edi
call esi
mov esi, dword [esp + 0x34]
push esi
push str.VerifyFileSignature:_return_rc_d_._n
push ebx
call fcn.00403dc0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret
push esi
push str.The_file___s__is_not_signed._n
jmp 0x403be8
cmp eax, 0x800b0111
je 0x403cbf
cmp eax, ebx
je 0x403ca7
push eax
push str.Error_is:_0x_x._n
jmp 0x403be8
push esi
push str.The_file___s__is_signed_and_the_signature_was_verified._n
push ebx
call fcn.00403e50
add esp, 0xc
mov dword [esp + 0x34], ebp
jmp 0x403bf1
push str.The_signature_is_present__but_specifically_disallowed._n
push ebx
call fcn.00403e50
add esp, 8
jmp 0x403bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerifyFileSignature:CryptMsgGetParam___error2_u_n
push ebx
call fcn.00403dc0
add esp, 0xc
jmp 0x403c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerifyFileSignature:CryptMsgGetParam___error1_u_n
push ebx
call fcn.00403dc0
add esp, 0xc
jmp 0x403c26
xor eax, eax
pop ebx
add esp, 0xfc
ret