Function at 0x405030
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x423c36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x51c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x13], 1
mov dword [esp + 0x1c], edi
mov al, byte [edi + 0x1f10]
test al, al
je 0x405070
mov byte [edi + 0x1f10], 0
jmp 0x4054c3
push 1
push 0
mov ecx, edi
call fcn.00407a70
push 0
push 0x42d1a8
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
xor bl, bl
call fcn.0040d010
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4054c3
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
jmp 0x4050a7
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xac]
push str.ProxyEnable
push eax
mov dword [esp + 0x1c], 0
call ebp
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xb4]
push ecx
push edx
push esi
call fcn.0040d0a0
mov eax, dword [esp + 0x28]
add esp, 0x14
test eax, eax
mov eax, dword [edi + 0x1f00]
je 0x40526d
test eax, eax
je 0x40511c
lea eax, [esp + 0x2c]
push str.ProxyOverride
push eax
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x334]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x334]
push ecx
push edx
push esi
call fcn.0040d100
add esp, 0x14
lea eax, [esp + 0x2c]
push str.ProxyServer
push eax
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x334]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x334]
push ecx
push edx
push esi
call fcn.0040d100
mov edi, dword [esp + 0x30]
xor ebx, ebx
add esp, 0x14
cmp dword [edi + 0x1ef0], ebx
jne 0x40518a
lea eax, [esp + 0x2c]
push str.ProxyEnable
push eax
mov dword [esp + 0x1c], ebx
call ebp
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push edx
push esi
call fcn.0040d0e0
mov edi, dword [esp + 0x28]
add esp, 0x14
mov bl, 1
jmp 0x4053f6
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], 0x100
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x28]
lea ecx, [esp + 0x12c]
push eax
push ecx
mov dword [esp + 0x53c], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4051c0
push str.localhost
jmp 0x4051c8
lea edx, [esp + 0x12c]
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x2c]
push str.ProxyServer
push eax
call ebp
mov ecx, dword [edi + 0x1f0c]
mov edx, dword [edi + 0x544]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x13c]
push eax
push ecx
call fcn.00402ba0
lea edx, [esp + 0x144]
lea eax, [esp + 0x44]
push edx
push eax
push esi
call fcn.0040d140
mov eax, dword [edi + 0x1f00]
add esp, 0x24
cmp eax, ebx
je 0x40524e
lea ecx, [esp + 0x2c]
push str.ProxyOverride
push ecx
call ebp
lea edx, [esp + 0x134]
push str._local_
push edx
call ebp
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x3c]
push eax
push ecx
push esi
call fcn.0040d140
add esp, 0x1c
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
mov bl, 1
mov dword [esp + 0x534], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x4053f6
test eax, eax
je 0x4052a3
lea edx, [esp + 0x6c]
push str.ProxyOverride
push edx
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x434]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x434]
lea ecx, [esp + 0x74]
push eax
push ecx
push esi
call fcn.0040d100
add esp, 0x14
lea edx, [esp + 0x6c]
push str.ProxyServer
push edx
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x434]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x434]
lea ecx, [esp + 0x74]
push eax
push ecx
push esi
call fcn.0040d100
mov edi, dword [esp + 0x30]
add esp, 0x14
mov eax, dword [edi + 0x1ef0]
test eax, eax
je 0x4053f2
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0x100
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x28]
lea eax, [esp + 0x22c]
mov ebx, 1
push edx
push eax
mov dword [esp + 0x53c], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x405322
push str.localhost
jmp 0x40532a
lea ecx, [esp + 0x22c]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x6c]
push str.ProxyServer
push edx
call ebp
mov eax, dword [edi + 0x1f0c]
mov ecx, dword [edi + 0x544]
mov edx, dword [esp + 0x20]
push eax
push ecx
lea eax, [esp + 0x23c]
push edx
push eax
call fcn.00402ba0
lea ecx, [esp + 0x244]
lea edx, [esp + 0x84]
push ecx
push edx
push esi
call fcn.0040d140
mov eax, dword [edi + 0x1f00]
add esp, 0x24
test eax, eax
je 0x4053b3
lea eax, [esp + 0x6c]
push str.ProxyOverride
push eax
call ebp
lea ecx, [esp + 0x234]
push str._local_
push ecx
call ebp
lea edx, [esp + 0x23c]
lea eax, [esp + 0x7c]
push edx
push eax
push esi
call fcn.0040d140
add esp, 0x1c
lea ecx, [esp + 0x6c]
push str.ProxyEnable
push ecx
mov dword [esp + 0x1c], ebx
call ebp
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x74]
push edx
push eax
push esi
call fcn.0040d0e0
mov edi, dword [esp + 0x28]
add esp, 0x14
lea ecx, [esp + 0x18]
mov bl, 1
mov dword [esp + 0x534], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x4053f6
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4054c3
mov al, byte [esp + 0x13]
test al, al
je 0x4054c3
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 0x405433
call esi
jmp 0x405491
call esi
push 0
push 0x42d1a8
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
call fcn.0040d010
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4054c3
lea ecx, [esp + 0xec]
push str.ProxyEnable
push ecx
mov dword [esp + 0x2c], 0
call ebp
lea edx, [esp + 0x2c]
lea eax, [esp + 0xf4]
push edx
push eax
push esi
call fcn.0040d0a0
add esp, 0x14
test eax, eax
je 0x405484
mov dword [esp + 0x24], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x24], edi
je 0x4054c3
mov ecx, dword [esp + 0x1c]
push 0
push 0
mov byte [esp + 0x1b], 0
call fcn.00407a70
push 0
push 0x42d1a8
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
xor bl, bl
call fcn.0040d010
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4050a3
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x528
ret