Function at 0x4578d0
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x59cd24]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x234], 0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004c4160
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push str._SYSTEMROOT_SYSTEM32crypt32.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x45798a
push str.CertGetNameStringW
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x4579a3
push str.pfnCertGetNameString__NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x457bff
push 0
push 0x10000080
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
call fcn.004109c3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
je 0x4579dc
cmp dword [ebp - 0x21c], 0
jne 0x4579e1
jmp 0x457bff
mov dword [ebp - 0x240], 0
push 0
push 0
lea ecx, [ebp - 0x240]
push ecx
push 0xff
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.imagehlp.dll_ImageEnumerateCertificates]
test eax, eax
jne 0x457a11
jmp 0x457bff
cmp dword [ebp - 0x240], 1
je 0x457a1f
jmp 0x457bff
mov dword [ebp - 0x218], 0
mov eax, 0x100
mov word [ebp - 0x214], ax
lea ecx, [ebp - 0x218]
push ecx
push 0
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.imagehlp.dll_ImageGetCertificateHeader]
test eax, eax
jne 0x457a54
jmp 0x457bff
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
add ecx, 0xc
push ecx
call fcn.0049fcd7
add esp, 4
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x228], 0
jne 0x457a9c
jmp 0x457bff
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x238]
mov dword [ecx], edx
mov eax, 0x100
mov ecx, dword [ebp - 0x220]
mov word [ecx + 4], ax
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x220]
push eax
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.imagehlp.dll_ImageGetCertificateData]
test eax, eax
jne 0x457aeb
jmp 0x457bff
mov dword [ebp - 0x24c], 0
xor edx, edx
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x26c], 0x14
mov dword [ebp - 0x268], 0x10001
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x24c]
push ecx
push 0
mov edx, dword [ebp - 0x220]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 8
push ecx
push 0
lea edx, [ebp - 0x26c]
push edx
call dword [sym.imp.CRYPT32.dll_CryptVerifyMessageSignature]
test eax, eax
jne 0x457b64
jmp 0x457bff
push 0
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x230]
push eax
call dword [ebp - 0x234]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
ja 0x457b8c
jmp 0x457bff
xor ecx, ecx
mov eax, dword [ebp - 0x23c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049fcd7
add esp, 4
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x224]
push edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x230]
push eax
call dword [ebp - 0x234]
mov ecx, dword [ebp - 0x224]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040d441
mov dword [ebp - 0x244], 1
xor edx, edx
jne 0x45791f
cmp dword [ebp - 0x230], 0
je 0x457c15
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0x21c], 0xffffffff
je 0x457c3e
cmp dword [ebp - 0x21c], 0
je 0x457c3e
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 0
cmp dword [ebp - 0x224], 0
je 0x457c6c
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x254]
push eax
call fcn.0049f576
add esp, 4
mov dword [ebp - 0x224], 0
cmp dword [ebp - 0x228], 0
je 0x457c9a
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x258], ecx
mov edx, dword [ebp - 0x258]
push edx
call fcn.0049f576
add esp, 4
mov dword [ebp - 0x228], 0
cmp dword [ebp - 0x22c], 0
je 0x457cba
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb26
mov esp, ebp
pop ebp
ret