Function at 0x4080c0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x423f16
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 0x4080fd
mov eax, dword [esp + 0x14]
push eax
push 1
jmp 0x408101
push 0
push 0
mov ecx, ebx
call fcn.00407a70
xor edi, edi
mov byte [esp + 0x13], 0
push edi
push 0x42d1a8
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
call fcn.0040d010
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x408618
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.0040d0a0
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, edi
je 0x408364
mov cl, byte [esp + 0x14]
test cl, cl
je 0x40816f
mov dword [ebx + 0x1ef4], eax
cmp dword [ebx + 0x1f00], edi
je 0x4081c4
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.0040d100
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x4081c4
lea ecx, [esp + 0x330]
push ecx
lea ecx, [ebx + 0x1efc]
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.0040d100
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x408211
lea edx, [esp + 0x330]
lea ecx, [ebx + 0x1ef8]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebx + 0x1ef0]
xor edi, edi
cmp eax, edi
jne 0x408266
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.0040d0e0
add esp, 0x14
mov ecx, ebx
push 0x42becc
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 0x408567
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0x100
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 0x40829c
push str.localhost
jmp 0x4082a4
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 + 0x1f0c]
mov edx, dword [ebx + 0x544]
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.0040d140
mov eax, dword [ebx + 0x1f00]
add esp, 0x24
cmp eax, edi
je 0x40832a
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.0040d140
add esp, 0x1c
push 0x42beb4
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 0x408567
mov al, byte [esp + 0x14]
test al, al
je 0x408372
mov dword [ebx + 0x1ef4], edi
cmp dword [ebx + 0x1f00], edi
je 0x4083c7
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.0040d100
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x4083c7
lea edx, [esp + 0x230]
lea ecx, [ebx + 0x1efc]
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.0040d100
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x408414
lea eax, [esp + 0x230]
lea ecx, [ebx + 0x1ef8]
push eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebx + 0x1ef0]
test eax, eax
je 0x40854b
push 0x42beb4
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], 0x100
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 0x408475
push str.localhost
jmp 0x40847d
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 + 0x1f0c]
mov eax, dword [ebx + 0x544]
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.0040d140
mov eax, dword [ebx + 0x1f00]
add esp, 0x24
test eax, eax
je 0x408509
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.0040d140
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.0040d0e0
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 0x408567
push 0x42becc
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 0x408618
mov al, byte [esp + 0x14]
test al, al
je 0x408618
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 0x4085b0
call esi
mov byte [esp + 0x14], 0
jmp 0x4080ec
call esi
push 0
push 0x42d1a8
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
call fcn.0040d010
mov esi, eax
add esp, 0xc
test esi, esi
je 0x408618
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.0040d0a0
add esp, 0x14
test eax, eax
je 0x408601
mov dword [esp + 0x24], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x24], edi
je 0x408618
mov byte [esp + 0x14], 0
jmp 0x4080ec
mov ecx, dword [esp + 0x530]
pop edi
pop esi
mov byte [ebx + 0x1f10], 1
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x52c
ret