Function at 0x4384e0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x46f9d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x48a3c0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x41c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x48dfbc]
xor esi, esi
or ebx, 0xffffffff
mov dword [ebp - 0x14], esi
cmp eax, ebx
je 0x438572
cmp eax, esi
jl 0x43875f
cmp eax, 1
jae 0x43875f
lea ecx, [ebp - 0x14]
push ecx
push 0x47d514
push 0x17
shl eax, 4
push esi
add eax, 0x47b75c
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x43875f
mov dword [ebp - 0x14], esi
jmp 0x43875f
mov dword [0x48dfbc], 0xfffffffe
mov eax, 6
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x43873d
cmp eax, 6
je 0x43861c
mov eax, dword [eax*4 + 0x47b76c]
push 0x410
lea edx, [ebp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4386f9
cmp eax, 0x410
ja 0x4386f9
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4386f9
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4385f3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
dec eax
jmp 0x438581
mov dword [ebp - 4], 2
call eax
push esi
test eax, eax
jge 0x438613
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
dec eax
jmp 0x438581
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
test edi, edi
jl 0x4386ed
lea ecx, [ebp - 0x14]
push ecx
push 0x47d514
mov eax, edi
push 0x17
shl eax, 4
lea esi, [eax + 0x47b75c]
push 0
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x438691
mov dword [ebp - 0x14], 0
cmp eax, 0x800401f0
je 0x438743
mov dword [ebp - 4], ebx
dec edi
jmp 0x438621
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x104]
lea ecx, [ebp - 0x1c]
push ecx
push str._doc__test_test__test___doc_
push eax
call edx
test eax, eax
jl 0x438702
cmp word [ebp - 0x1c], 0
je 0x438702
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x14]
push eax
push 0x47d514
push 0x17
push 0
push esi
mov dword [ebp - 0x14], 0
mov dword [0x48dfbc], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4386ea
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 0
jne 0x43875f
cmp dword [ebp - 0x28], 0
jne 0x438743
mov eax, dword [ebp - 0x20]
dec eax
jmp 0x438581
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], ebx
dec edi
jmp 0x438621
cmp dword [ebp - 0x14], 0
jne 0x43875f
push 0
push 0
push 0
push 0x438270
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00460259
add ebp, 0x414
mov esp, ebp
pop ebp
ret