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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x59cd24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x224], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov ebx, esi
push 0x208
mov dword [ebp - 0x238], eax
or edi, 0xffffffff
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], esi
push esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.004c4160
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str._SYSTEMROOT_SYSTEM32crypt32.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x43691e
push str.CertGetNameStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x43691e
mov ecx, dword [ebp - 0x224]
push esi
push 0x10000080
push 3
push esi
push 1
push SysReAllocStringLen
call fcn.004109c3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x436929
push esi
push esi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], esi
push eax
push 0xff
push edi
call dword [sym.imp.imagehlp.dll_ImageEnumerateCertificates]
test eax, eax
je 0x436929
cmp dword [ebp - 0x228], 1
jne 0x436929
mov eax, 0x100
mov dword [ebp - 0x218], esi
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call dword [sym.imp.imagehlp.dll_ImageGetCertificateHeader]
test eax, eax
je 0x436929
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x22c], eax
add eax, 0xc
push eax
call fcn.0049fcd7
mov ebx, eax
mov eax, dword [ebp - 0x22c]
pop ecx
mov dword [ebx], eax
mov eax, 0x100
mov word [ebx + 4], ax
lea eax, [ebp - 0x22c]
push eax
push ebx
push esi
push edi
call dword [sym.imp.imagehlp.dll_ImageGetCertificateData]
test eax, eax
je 0x436929
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x234], esi
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x240], esi
push eax
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x250], 0x14
movlpd qword [ebp - 0x248], xmm0
lea eax, [ebx + 8]
mov dword [ebp - 0x24c], 0x10001
push dword [ebx]
push eax
push esi
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.CRYPT32.dll_CryptVerifyMessageSignature]
test eax, eax
je 0x436929
push esi
push esi
push esi
push esi
push 4
push dword [ebp - 0x21c]
call dword [ebp - 0x230]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x436929
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049fcd7
pop ecx
push dword [ebp - 0x224]
mov dword [ebp - 0x220], eax
push eax
push esi
push esi
push 4
push dword [ebp - 0x21c]
call dword [ebp - 0x230]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x238]
push eax
call fcn.0040d441
inc esi
jmp 0x436929
push str.pfnCertGetNameString__NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x21c], 0
je 0x43693e
push dword [ebp - 0x21c]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp edi, 0xffffffff
je 0x43694a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x43695b
push eax
call fcn.0049f576
pop ecx
test ebx, ebx
je 0x436966
push ebx
call fcn.0049f576
pop ecx
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x436977
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fb26
leave
ret