Function at 0x409770
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4461e7
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4594f0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4594f0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x36f0
call fcn.004132c2
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x140], ebp
cmp edi, ebp
je 0x409816
push edi
call fcn.0040a8d0
lea esi, [edi + 0x35c8]
call fcn.00407ce0
mov byte [esp + 0x140], 2
mov dword [edi], vtable.LoginService::CLoginServiceT_class_ATL::CSoapSocketClientT_class_ATL::ZEvtSyncSocket__.0
mov dword [esi], vtable.LoginService::CLoginServiceT_class_ATL::CSoapSocketClientT_class_ATL::ZEvtSyncSocket__.1.0
mov byte [edi + 0x36b0], 1
mov eax, dword [esi + 0x1c]
cmp eax, ebp
je 0x409810
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x1c], ebp
mov dword [esp + 0x2c], edi
jmp 0x40981a
mov dword [esp + 0x2c], ebp
mov ebx, 0x44d60c
mov dword [esp + 0x140], 0xffffffff
call fcn.00410d80
mov dword [esp + 0x30], eax
cmp eax, ebp
jne 0x409841
push 0x8007000e
call fcn.00411a00
mov ebx, 0x44ca80
mov dword [esp + 0x140], 3
call fcn.00410d80
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x40986a
push 0x8007000e
call fcn.00411a00
mov ebx, 0x44ca80
mov byte [esp + 0x140], 4
call fcn.00410d80
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x40988e
push 0x8007000e
call fcn.00411a00
mov ebx, 0x44ca80
mov byte [esp + 0x140], 5
call fcn.00410d80
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4098b2
push 0x8007000e
call fcn.00411a00
push 0xff
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x148], 6
call dword [sym.imp.WS2_32.dll_gethostname]
lea ebx, [esp + 0x34]
call fcn.00410d80
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x4098e7
push 0x8007000e
call fcn.00411a00
mov byte [esp + 0x140], 7
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp ebp, edi
je 0x40991d
push ebp
call esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40991d
push 0x8007000e
call fcn.00411a00
push edi
mov byte [esp + 0x144], 6
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer_
push reloc.SkinMagic.dll_Ordinal_2
call ebp
test eax, eax
jne 0x4099ab
push 0x50
call fcn.004132f1
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x28]
push edx
mov ebx, eax
push ebx
lea eax, [esp + 0x1c]
push eax
push 0
push str.Version
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x40], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4099ab
call fcn.00410d80
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x4099b1
push 0x8007000e
call fcn.00411a00
xor edi, edi
mov dword [esp + 0x14], edi
mov byte [esp + 0x140], 8
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4099f1
push eax
call esi
test edi, edi
jne 0x4099cc
xor eax, eax
jmp 0x4099db
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x4099f1
test eax, eax
jne 0x4099f1
push 0x8007000e
call fcn.00411a00
push edi
mov byte [esp + 0x144], 6
call esi
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push reloc.SkinMagic.dll_Ordinal_2
call ebp
test eax, eax
jne 0x409a79
push 0x50
call fcn.004132f1
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov ebx, eax
mov eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x30]
push edx
push 0
push 0x44e2c8
push eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x2c], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x409a79
call fcn.00410d80
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x409a7f
push 0x8007000e
call fcn.00411a00
xor edi, edi
mov dword [esp + 0x14], edi
mov byte [esp + 0x140], 9
mov ebp, dword [esp + 0x24]
cmp ebp, edi
je 0x409ac3
push ebp
call esi
test edi, edi
jne 0x409a9a
xor eax, eax
jmp 0x409aa9
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [esp + 0x24], eax
test edi, edi
je 0x409abf
test eax, eax
jne 0x409abf
push 0x8007000e
call fcn.00411a00
mov ebp, dword [esp + 0x24]
push edi
mov byte [esp + 0x144], 6
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x34]
push ebp
push eax
push ecx
push edx
call fcn.0040bcb0
mov edi, eax
test ebx, ebx
je 0x409b05
mov eax, dword [ebx + 0x35c8]
mov edx, dword [eax + 0x54]
lea ecx, [ebx + 0x35c8]
push 1
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebp
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
mov edx, dword [esp + 0x30]
push edx
call esi
xor eax, eax
test edi, edi
setl al
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0042f79c
add esp, 0x130
ret