Function at 0x4087a0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x4282a6
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 0x4087dd
mov eax, dword [esp + 0x14]
push eax
push 1
jmp 0x4087e1
push 0
push 0
mov ecx, ebx
call fcn.00408150
xor edi, edi
mov byte [esp + 0x13], 0
push edi
push 0x433ae8
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
call fcn.0040e6f0
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x408cf8
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.0040e780
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, edi
je 0x408a44
mov cl, byte [esp + 0x14]
test cl, cl
je 0x40884f
mov dword [ebx + 0x2344], eax
cmp dword [ebx + 0x2350], edi
je 0x4088a4
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.0040e7e0
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x4088a4
lea ecx, [esp + 0x330]
push ecx
lea ecx, [ebx + 0x234c]
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.0040e7e0
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x4088f1
lea edx, [esp + 0x330]
lea ecx, [ebx + 0x2348]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebx + 0x2340]
xor edi, edi
cmp eax, edi
jne 0x408946
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.0040e7c0
add esp, 0x14
mov ecx, ebx
push 0x431fb0
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 0x408c47
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 0x40897c
push str.localhost
jmp 0x408984
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 + 0x235c]
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.0040e820
mov eax, dword [ebx + 0x2350]
add esp, 0x24
cmp eax, edi
je 0x408a0a
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.0040e820
add esp, 0x1c
push 0x431f98
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 0x408c47
mov al, byte [esp + 0x14]
test al, al
je 0x408a52
mov dword [ebx + 0x2344], edi
cmp dword [ebx + 0x2350], edi
je 0x408aa7
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.0040e7e0
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x408aa7
lea edx, [esp + 0x230]
lea ecx, [ebx + 0x234c]
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.0040e7e0
mov al, byte [esp + 0x28]
add esp, 0x14
test al, al
je 0x408af4
lea eax, [esp + 0x230]
lea ecx, [ebx + 0x2348]
push eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebx + 0x2340]
test eax, eax
je 0x408c2b
push 0x431f98
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 0x408b55
push str.localhost
jmp 0x408b5d
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 + 0x235c]
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.0040e820
mov eax, dword [ebx + 0x2350]
add esp, 0x24
test eax, eax
je 0x408be9
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.0040e820
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.0040e7c0
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 0x408c47
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]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
test al, al
je 0x408cf8
mov al, byte [esp + 0x14]
test al, al
je 0x408cf8
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 0x408c90
call esi
mov byte [esp + 0x14], 0
jmp 0x4087cc
call esi
push 0
push 0x433ae8
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
call fcn.0040e6f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x408cf8
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.0040e780
add esp, 0x14
test eax, eax
je 0x408ce1
mov dword [esp + 0x24], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x24], edi
je 0x408cf8
mov byte [esp + 0x14], 0
jmp 0x4087cc
mov ecx, dword [esp + 0x530]
pop edi
pop esi
mov byte [ebx + 0x2360], 1
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x52c
ret