Function at 0x416d50
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x560a40]
push ebx
push esi
push edi
xor esi, esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
je 0x416dbf
cmp eax, esi
jl 0x416fd1
cmp eax, 1
jae 0x416fd1
lea ecx, [ebp - 0x14]
push ecx
push 0x560a30
shl eax, 4
push 0x17
add eax, 0x535130
push esi
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x416fd1
mov dword [ebp - 0x14], esi
jmp 0x416fd1
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, 6
mov dword [0x560a40], 0xfffffffe
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x416fae
cmp eax, 6
je 0x416e84
mov eax, dword [eax*4 + 0x535114]
lea edx, [ebp - 0x22c]
push 0x208
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x416fa2
cmp eax, 0x208
ja 0x416fa2
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
je 0x416fa2
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x416e4f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
jmp 0x416dd7
mov dword [ebp - 4], 2
call eax
test eax, eax
jge 0x416e76
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
dec eax
mov dword [ebp - 0x20], eax
jmp 0x416dd7
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
mov dword [ebp - 0x24], edi
test edi, edi
mov dword [ebp - 0x18], edi
jl 0x416f3e
mov eax, edi
lea ecx, [ebp - 0x14]
shl eax, 4
push ecx
push 0x560a30
lea esi, [eax + 0x535130]
push 0x17
push 0
push esi
mov dword [ebp - 4], 4
call ebx
test eax, eax
jge 0x416ee6
cmp eax, 0x800401f0
mov dword [ebp - 0x14], 0
je 0x416fb5
mov dword [ebp - 4], 0xffffffff
dec edi
jmp 0x416e89
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1a]
push ecx
push str._doc__test_test__test___doc_
mov edx, dword [eax]
push eax
call dword [edx + 0x104]
test eax, eax
jl 0x416f5c
cmp word [ebp - 0x1a], 0
je 0x416f5c
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x560a30
push 0x17
push 0
push esi
mov dword [0x560a40], edi
call ebx
test eax, eax
jge 0x416f37
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x416fd1
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x416fb5
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
jmp 0x416dd7
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
dec edi
jmp 0x416e89
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
jmp 0x416dd7
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x416fd1
push 0
push 0
push 0
push 0x417000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [edx], eax
pop esi
neg eax
sbb eax, eax
mov dword fs:[0], ecx
and eax, 0x7fffbffb
pop ebx
add eax, 0x80004005
mov esp, ebp
pop ebp
ret