Function at 0x412675
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x44], ebx
call fcn.004039a6
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Crypt32.dll
call esi
push str.Imagehlp.dll
mov dword [ebp - 0x18], eax
call esi
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
je 0x41285c
cmp eax, ebx
je 0x412853
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CertGetNameStringA
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x412853
push str.CertFreeCertificateContext
push dword [ebp - 0x18]
call esi
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x412853
push str.CryptVerifyMessageSignature
push dword [ebp - 0x18]
call esi
cmp eax, ebx
mov dword [ebp - 0x3c], eax
je 0x412853
push str.ImageGetCertificateData
push dword [ebp - 0x1c]
call esi
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x412853
push str.ImageGetCertificateHeader
push dword [ebp - 0x1c]
call esi
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x412853
push str.ImageEnumerateCertificates
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x412853
push ebx
push 0x10000080
push 3
push ebx
push 1
push SysReAllocString
push edi
mov byte [ebp - 0x11], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x38], edi
je 0x412853
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
push 0xff
push edi
call esi
test eax, eax
je 0x41284a
cmp dword [ebp - 0x40], 1
jne 0x41284a
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x100
call dword [ebp - 0x2c]
test eax, eax
je 0x41284a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
add eax, 0xc
push eax
call fcn.00428043
mov esi, eax
cmp esi, ebx
pop ecx
je 0x41284a
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
push edi
mov word [esi + 4], 0x100
call dword [ebp - 0x34]
test eax, eax
je 0x412843
push 0x14
pop edi
push edi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00425c80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], 0x10001
push dword [esi]
lea eax, [esi + 8]
push eax
push ebx
lea eax, [ebp - 0x58]
push eax
call dword [ebp - 0x3c]
test eax, eax
je 0x412843
cmp dword [ebp + 0xc], ebx
jne 0x412827
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.004124cb
jmp 0x412838
cmp dword [ebp + 0xc], 1
jne 0x41283d
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.004125e9
pop ecx
mov byte [ebp - 0x11], al
pop ecx
push dword [ebp - 0x20]
call dword [ebp - 0x30]
push esi
call fcn.00427f66
pop ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x1c], ebx
pop edi
pop esi
pop ebx
je 0x41286d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x11]
xor ecx, ebp
call fcn.00425c6b
leave
ret