Function at 0x433ef0
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6080
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x128], ebx
lea esi, [ebx + 8]
mov dword [ebp - 0x128], ebx
mov ecx, esi
call fcn.004941b0
push 0
push 0x4cfbed
lea ecx, [esi + 0x10]
call fcn.0046f300
push 1
lea ecx, [esi + 0x38]
call fcn.0049d210
push esi
call fcn.0043e2a0
add esp, 4
mov dword [ebx], vtable.ControlSvc::CServiceLog.0
push 0x434a70
push 0x432dc0
push 0x258
push 0xc
lea eax, [ebx + 0x68]
mov dword [ebp - 4], 0
push eax
mov dword [ebx + 0x60], 0x258
mov dword [ebx + 0x64], 1
call fcn.004a56a7
mov ecx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x1c88], 0
mov eax, dword [0x4f9080]
or eax, dword [0x4f9084]
mov dword [ebp - 4], 0xffffffff
jne 0x4340fc
xor ebx, ebx
cmp byte [0x50b7c0], bl
jne 0x43408a
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x114
push eax
call ecx
test eax, eax
je 0x434016
cmp dword [ebp - 0x120], 6
setb cl
mov byte [0x50b7c1], cl
ja 0x43400d
jne 0x434009
cmp dword [ebp - 0x11c], 1
ja 0x43400d
xor ebx, ebx
jmp 0x434012
mov ebx, 1
test cl, cl
jne 0x434083
push str.advapi32.dll
call esi
mov esi, eax
test esi, esi
jne 0x434039
test ebx, ebx
je 0x434076
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.api_ms_win_eventing_provider_l1_1_0.dll
call eax
mov esi, eax
test esi, esi
je 0x434076
push str.EventWrite
push esi
call edi
mov dword [0x50b7c4], eax
test eax, eax
je 0x434076
push str.EventRegister
push esi
call edi
mov dword [0x4f9008], eax
test eax, eax
je 0x43406c
push str.EventUnregister
push esi
call edi
mov dword [0x50b7c8], eax
test eax, eax
jne 0x43407d
mov dword [0x4f9008], 0x401960
mov byte [0x50b7c1], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov byte [0x50b7c0], 1
cmp byte [0x50b7c1], 0
push 0x4f9080
jne 0x4340af
push 0x4f9080
push 0x4026c0
push 0x4ce6b4
call dword [0x4f9008]
jmp 0x4340f6
push 0
mov eax, 0x4f9080
mov dword [ebp - 0x12c], 0x4ce6b4
cdq
push 0
mov dword [0x4f9080], eax
lea eax, [ebp - 0x12c]
push eax
push 1
push 0x4ce6b4
push 0x4f9080
push 0x402530
mov dword [0x4f9084], edx
mov dword [ebp - 0x128], 0
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x4f9010]
or eax, dword [0x4f9014]
jne 0x434236
xor ebx, ebx
cmp byte [0x50b7c0], bl
jne 0x4341ca
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x114
push eax
call ecx
test eax, eax
je 0x43415c
cmp dword [ebp - 0x120], 6
setb cl
mov byte [0x50b7c1], cl
ja 0x434153
jne 0x43414f
cmp dword [ebp - 0x11c], 1
ja 0x434153
xor ebx, ebx
jmp 0x434158
mov ebx, 1
test cl, cl
jne 0x4341c3
push str.advapi32.dll
call esi
mov esi, eax
test esi, esi
jne 0x43417f
test ebx, ebx
je 0x4341bc
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.api_ms_win_eventing_provider_l1_1_0.dll
call eax
mov esi, eax
test esi, esi
je 0x4341bc
push str.EventWrite
push esi
call edi
mov dword [0x50b7c4], eax
test eax, eax
je 0x4341bc
push str.EventRegister
push esi
call edi
mov dword [0x4f9008], eax
test eax, eax
je 0x4341b2
push str.EventUnregister
push esi
call edi
mov dword [0x50b7c8], eax
test eax, eax
jne 0x4341c3
mov dword [0x4f9008], 0x401960
mov byte [0x50b7c1], 1
mov byte [0x50b7c0], 1
cmp byte [0x50b7c1], 0
push 0x4f9010
jne 0x4341ef
push 0x4f9010
push 0x4026c0
push 0x4ce5d4
call dword [0x4f9008]
jmp 0x434236
push 0
mov eax, 0x4f9010
mov dword [ebp - 0x12c], 0x4ce5d4
cdq
push 0
mov dword [0x4f9010], eax
lea eax, [ebp - 0x12c]
push eax
push 1
push 0x4ce5d4
push 0x4f9010
push 0x402530
mov dword [0x4f9014], edx
mov dword [ebp - 0x128], 0
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov eax, dword [0x4f9048]
or eax, dword [0x4f904c]
jne 0x434377
xor ebx, ebx
cmp byte [0x50b7c0], bl
jne 0x43430b
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43429a
cmp dword [ebp - 0x120], 6
setb cl
mov byte [0x50b7c1], cl
ja 0x434291
jne 0x43428d
cmp dword [ebp - 0x11c], 1
ja 0x434291
xor ebx, ebx
jmp 0x434296
mov ebx, 1
test cl, cl
jne 0x434304
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x4342c0
test ebx, ebx
je 0x4342fd
push str.api_ms_win_eventing_provider_l1_1_0.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4342fd
push str.EventWrite
push esi
call edi
mov dword [0x50b7c4], eax
test eax, eax
je 0x4342fd
push str.EventRegister
push esi
call edi
mov dword [0x4f9008], eax
test eax, eax
je 0x4342f3
push str.EventUnregister
push esi
call edi
mov dword [0x50b7c8], eax
test eax, eax
jne 0x434304
mov dword [0x4f9008], 0x401960
mov byte [0x50b7c1], 1
mov byte [0x50b7c0], 1
cmp byte [0x50b7c1], 0
push 0x4f9048
jne 0x434330
push 0x4f9048
push 0x4026c0
push 0x4ce5f4
call dword [0x4f9008]
jmp 0x434377
push 0
mov eax, 0x4f9048
mov dword [ebp - 0x12c], 0x4ce5f4
cdq
push 0
mov dword [0x4f9048], eax
lea eax, [ebp - 0x12c]
push eax
push 1
push 0x4ce5f4
push 0x4f9048
push 0x402530
mov dword [0x4f904c], edx
mov dword [ebp - 0x128], 0
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
call fcn.0046b320
test al, al
jne 0x434425
push 0x50b884
push 0x4f90ec
call fcn.0049c9f0
add esp, 8
test al, al
je 0x4343f1
push 0x48
push 0x4f9130
push dword [0x50b884]
call fcn.0049c970
add esp, 0xc
test al, al
je 0x4343f1
push 0x68
push 0x4f9178
push dword [0x50b884]
call fcn.0049c970
add esp, 0xc
test al, al
je 0x4343f1
push 0x1a8
push 0x4f91e0
push dword [0x50b884]
call fcn.0049c970
add esp, 0xc
test al, al
je 0x4343f1
push 1
call fcn.0046c040
jmp 0x434422
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x50b880], 1
je 0x434418
push eax
push 0x4ce734
push 0x4ceec8
push 0x4f9080
call fcn.00403760
add esp, 0x10
push 0x50b884
call fcn.0049c680
add esp, 4
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret