Function at 0x10036a60
Capabilities:
Access the windows event log
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x134
call fcn.10092490
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10036aca
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10036aca
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10090672
add eax, 0x40
push eax
call fcn.100943e0
add esp, 0xc
mov dword [ebp - 0x114], 0
jmp 0x10036d95
mov ecx, 1
test ecx, ecx
je 0x10036ade
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
jmp 0x10036cc9
mov eax, dword [ebp + 8]
push eax
call fcn.10092400
add esp, 4
add eax, 1
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
shl eax, 1
call fcn.100941e0
mov dword [ebp - 0x130], esp
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x118], ecx
cmp dword [ebp - 0x118], 0
jne 0x10036b27
mov dword [ebp - 8], str.no_stack_
jmp 0x10036cc9
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10036b96
mov dword [ebp - 0x11c], 0
jmp 0x10036b69
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0x120]
jae 0x10036b96
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x11c]
movsx ax, byte [edx]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
mov word [edx + ecx*2], ax
jmp 0x10036b5a
mov dword [ebp - 0x11c], 0
jmp 0x10036bb1
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0x120]
jae 0x10036cb8
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x118]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x25
jne 0x10036cb3
mov dword [ebp - 0x124], 0
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x118]
movzx ecx, word [eax + edx*2 + 2]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
sub edx, 0x2a
mov dword [ebp - 0x134], edx
cmp dword [ebp - 0x134], 0x49
ja case.0x10036c26.1
mov eax, dword [ebp - 0x134]
movzx ecx, byte [eax + 0x10036dc4]
jmp dword [ecx*4 + 0x10036dac]
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x124], 1
jmp case.0x10036c26.1
mov eax, 0x53
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
mov word [edx + ecx*2 + 2], ax
jmp case.0x10036c26.1
mov eax, 0x73
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
mov word [edx + ecx*2 + 2], ax
jmp case.0x10036c26.1
mov eax, 0x43
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
mov word [edx + ecx*2 + 2], ax
jmp case.0x10036c26.1
mov eax, 0x63
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
mov word [edx + ecx*2 + 2], ax
cmp dword [ebp - 0x124], 0
jne 0x10036bdc
jmp 0x10036ba2
mov eax, dword [ebp - 0x118]
mov dword [ebp - 8], eax
xor ecx, ecx
jne 0x10036ade
lea edx, [ebp + 0xc]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0xff
lea edx, [ebp - 0x110]
push edx
call fcn.100942b8
add esp, 0x10
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10036d7f
call fcn.10036900
test eax, eax
jle 0x10036d7f
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x10036d7d
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], eax
push 0
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x10036d70
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x10036d95
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x134]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret