Function at 0x408a50
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x428746
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x520
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push edi
mov ebx, ecx
mov byte [esp + 0x14], 1
mov al, byte [esp + 0x14]
test al, al
je 0x408a8d
mov eax, dword [esp + 0x14]
push eax
push 1
jmp 0x408a91
push 0
push 0
mov ecx, ebx
call fcn.004083f0
xor edi, edi
mov byte [esp + 0x13], 0
push edi
push 0x433b08
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
call fcn.0040e9b0
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x408fa8
lea ecx, [esp + 0xf0]
push str.ProxyEnable
push ecx
mov dword [esp + 0x20], edi
call ebp
lea edx, [esp + 0x20]
lea eax, [esp + 0xf8]
push edx
push eax
push esi
call fcn.0040ea40
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, edi
je 0x408cf4
mov cl, byte [esp + 0x14]
test cl, cl
je 0x408aff
mov dword [ebx + 0x2348], eax
cmp dword [ebx + 0x2354], edi
je 0x408b54
lea ecx, [esp + 0x30]
push str.ProxyOverride
push ecx
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x338]
lea edx, [esp + 0x338]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push edx
push eax
push esi
call fcn.0040eaa0
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x408b54
lea ecx, [esp + 0x330]
push ecx
lea ecx, [ebx + 0x2350]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x30]
push str.ProxyServer
push edx
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x338]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x338]
lea ecx, [esp + 0x38]
push eax
push ecx
push esi
call fcn.0040eaa0
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x408ba1
lea edx, [esp + 0x330]
lea ecx, [ebx + 0x234c]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebx + 0x2344]
xor edi, edi
cmp eax, edi
jne 0x408bf6
lea eax, [esp + 0x30]
push str.ProxyEnable
push eax
mov dword [esp + 0x20], edi
call ebp
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x38]
push ecx
push edx
push esi
call fcn.0040ea80
add esp, 0x14
mov ecx, ebx
push 0x431fc8
push 0x40e
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], 1
jmp 0x408ef7
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], pe_nt_image_headers32
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x130]
push eax
push ecx
mov dword [esp + 0x540], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x408c2c
push str.localhost
jmp 0x408c34
lea edx, [esp + 0x130]
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x30]
push str.ProxyServer
push eax
call ebp
mov ecx, dword [ebx + 0x2360]
mov edx, dword [ebx + 0x98c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x140]
push eax
push ecx
call fcn.00402ba0
lea edx, [esp + 0x148]
lea eax, [esp + 0x48]
push edx
push eax
push esi
call fcn.0040eae0
mov eax, dword [ebx + 0x2354]
add esp, 0x24
cmp eax, edi
je 0x408cba
lea ecx, [esp + 0x30]
push str.ProxyOverride
push ecx
call ebp
lea edx, [esp + 0x138]
push str._local_
push edx
call ebp
lea eax, [esp + 0x140]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call fcn.0040eae0
add esp, 0x1c
push 0x431fb0
push 0x40e
mov ecx, ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
mov byte [esp + 0x13], 1
mov dword [esp + 0x538], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x408ef7
mov al, byte [esp + 0x14]
test al, al
je 0x408d02
mov dword [ebx + 0x2348], edi
cmp dword [ebx + 0x2354], edi
je 0x408d57
lea edx, [esp + 0x70]
push str.ProxyOverride
push edx
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x238]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x238]
lea ecx, [esp + 0x78]
push eax
push ecx
push esi
call fcn.0040eaa0
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x408d57
lea edx, [esp + 0x230]
lea ecx, [ebx + 0x2350]
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x70]
push str.ProxyServer
push eax
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x238]
lea edx, [esp + 0x78]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x238]
push ecx
push edx
push esi
call fcn.0040eaa0
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x408da4
lea eax, [esp + 0x230]
lea ecx, [ebx + 0x234c]
push eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebx + 0x2344]
test eax, eax
je 0x408edb
push 0x431fb0
push 0x40e
mov ecx, ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], pe_nt_image_headers32
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
lea edx, [esp + 0x430]
mov edi, 1
push ecx
push edx
mov dword [esp + 0x540], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x408e05
push str.localhost
jmp 0x408e0d
lea eax, [esp + 0x430]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x70]
push str.ProxyServer
push ecx
call ebp
mov edx, dword [ebx + 0x2360]
mov eax, dword [ebx + 0x98c]
mov ecx, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x440]
push ecx
push edx
call fcn.00402ba0
lea eax, [esp + 0x448]
lea ecx, [esp + 0x88]
push eax
push ecx
push esi
call fcn.0040eae0
mov eax, dword [ebx + 0x2354]
add esp, 0x24
test eax, eax
je 0x408e99
lea edx, [esp + 0x70]
push str.ProxyOverride
push edx
call ebp
lea eax, [esp + 0x438]
push str._local_
push eax
call ebp
lea ecx, [esp + 0x440]
lea edx, [esp + 0x80]
push ecx
push edx
push esi
call fcn.0040eae0
add esp, 0x1c
lea eax, [esp + 0x70]
push str.ProxyEnable
push eax
mov dword [esp + 0x20], edi
call ebp
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x78]
push ecx
push edx
push esi
call fcn.0040ea80
mov edi, dword [esp + 0x2c]
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13], 1
mov dword [esp + 0x538], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x408ef7
push 0x431fc8
push 0x40e
mov ecx, ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edi, dword [esp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
test al, al
je 0x408fa8
mov al, byte [esp + 0x14]
test al, al
je 0x408fa8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
push 0
push 0
push 0x27
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
push 0x64
jne 0x408f40
call esi
mov byte [esp + 0x14], 0
jmp 0x408a7c
call esi
push 0
push 0x433b08
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
call fcn.0040e9b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x408fa8
lea eax, [esp + 0xb0]
push str.ProxyEnable
push eax
mov dword [esp + 0x2c], 0
call ebp
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xb8]
push ecx
push edx
push esi
call fcn.0040ea40
add esp, 0x14
test eax, eax
je 0x408f91
mov dword [esp + 0x24], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x24], edi
je 0x408fa8
mov byte [esp + 0x14], 0
jmp 0x408a7c
mov ecx, dword [esp + 0x530]
pop edi
pop esi
mov byte [ebx + 0x2364], 1
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x52c
ret