Function at 0x50bc19da
Capabilities:
Accept command line arguments
Check os version
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 8], eax
mov eax, dword [0x50bc4380]
or eax, dword [0x50bc4384]
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
jne 0x50bc1b09
cmp byte [0x50bc4374], al
jne 0x50bc1aab
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x50bc1a49
cmp dword [esp + 0x24], 6
setb al
mov byte [0x50bc4375], al
test al, al
jne 0x50bc1aa4
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x50bc1a9d
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EventWrite
push esi
call ebx
mov dword [0x50bc4378], eax
test eax, eax
je 0x50bc1a9d
push str.EventRegister
push esi
call ebx
mov dword [0x50bc4048], eax
test eax, eax
je 0x50bc1a93
push str.EventUnregister
push esi
call ebx
mov dword [0x50bc437c], eax
test eax, eax
jne 0x50bc1aa4
mov dword [0x50bc4048], 0x50bc1605
mov byte [0x50bc4375], 1
mov byte [0x50bc4374], 1
cmp byte [0x50bc4375], 0
jne 0x50bc1ad0
push 0x50bc4380
push 0x50bc4388
push 0x50bc15b5
push 0x50bc3464
call dword [0x50bc4048]
jmp 0x50bc1b09
mov ecx, 0x50bc4388
mov eax, ecx
cdq
push ecx
mov dword [0x50bc4384], edx
xor edx, edx
push edx
push edx
mov dword [esp + 0x20], edx
lea edx, [esp + 0x1c]
push edx
push 1
mov dword [0x50bc4380], eax
mov eax, 0x50bc3464
push eax
push ecx
push 0x50bc154a
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
xor edx, edx
mov ebx, 0x80000000
cmp dword [0x50bc43ac], edx
je 0x50bc1b67
mov al, byte [0x50bc43b0]
cmp byte [0x50bc4375], dl
je 0x50bc1b2d
cmp al, 4
jae 0x50bc1b59
test al, al
jmp 0x50bc1b57
cmp al, 4
jae 0x50bc1b35
test al, al
jne 0x50bc1b67
mov ecx, dword [0x50bc439c]
and ecx, ebx
xor eax, eax
or eax, ecx
je 0x50bc1b67
mov ecx, dword [0x50bc43a4]
mov eax, ecx
and eax, ebx
cmp edx, dword [0x50bc43a0]
jne 0x50bc1b67
cmp eax, ecx
jne 0x50bc1b67
call fcn.50bc1f51
push edx
push eax
call fcn.50bc176c
pop ecx
pop ecx
mov eax, fcn.50bc123c
test eax, eax
jne 0x50bc1b74
xor esi, esi
jmp 0x50bc1bd4
push 0xb0
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x50bc1bd4
lea eax, [esi + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call fcn.50bc1924
mov dword [esi + 0x88], edi
lea edi, [esi + 0x94]
push edi
push dword [esp + 0x20]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [edi]
mov dword [esi + 0x90], eax
push eax
call fcn.50bc123c
add esp, 0x10
mov byte [esi + 0x8e], al
mov eax, esi
call fcn.50bc18bf
test al, al
jne 0x50bc1be9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
jmp 0x50bc1c3c
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x50bc1c36
cmp dword [esp + 0x14], edi
je 0x50bc1c11
push str.QQBrowserModuleEntry
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x50bc1c11
push esi
push dword [esp + 0x10]
call eax
push dword [esp + 0x18]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x50bc1c2c
push esi
push dword [esp + 0x10]
call eax
jmp 0x50bc1c3c
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x50bc1cfa
mov eax, esi
call fcn.50bc18bf
test al, al
je 0x50bc1cf0
cmp dword [esi + 4], 1
jne 0x50bc1cf0
cmp dword [0x50bc43ac], edi
je 0x50bc1cf0
cmp byte [0x50bc4375], 0
mov al, byte [0x50bc43b0]
je 0x50bc1c83
cmp al, 4
jae 0x50bc1cb1
test al, al
jmp 0x50bc1caf
cmp al, 4
jae 0x50bc1c8b
test al, al
jne 0x50bc1cf0
mov ecx, dword [0x50bc439c]
and ecx, ebx
xor eax, eax
or eax, ecx
je 0x50bc1cf0
mov ecx, dword [0x50bc43a4]
mov eax, ecx
xor edx, edx
and eax, ebx
cmp edx, dword [0x50bc43a0]
jne 0x50bc1cf0
cmp eax, ecx
jne 0x50bc1cf0
call fcn.50bc189a
mov edi, eax
sub edi, dword [esi + 0xa8]
mov ebx, edx
sbb ebx, dword [esi + 0xac]
call fcn.50bc189a
sub eax, dword [esi + 0xa0]
push ebx
sbb edx, dword [esi + 0xa4]
push edi
push edx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.50bc17e9
add esp, 0x18
xor edi, edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, edi
je 0x50bc1d07
mov ebx, esi
call fcn.50bc18e4
xor edi, edi
cmp byte [0x50bc4374], 0
je 0x50bc1d5d
mov esi, dword [0x50bc4380]
mov eax, dword [0x50bc4384]
mov ecx, esi
or ecx, eax
je 0x50bc1d5d
cmp byte [0x50bc4375], 0
jne 0x50bc1d34
push eax
push esi
call dword [0x50bc437c]
jmp 0x50bc1d51
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [esi + 0x20], edi
mov byte [esi + 0x28], 0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [0x50bc4380], edi
mov dword [0x50bc4384], edi
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.50bc2237
mov esp, ebp
pop ebp
ret 4