Function at 0x418a50
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x41da8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], esi
lea ecx, [esi + 0x398]
call fcn.0041b5bc
lea ebp, [esi + 0x3b0]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x150], ebx
call fcn.0041b5bc
lea ecx, [esi + 0x3b4]
mov byte [esp + 0x150], 1
call fcn.00403810
lea ecx, [esi + 0x414]
mov byte [esp + 0x150], 2
call fcn.0041b5bc
mov al, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x154], 3
mov byte [esi + 0x41c], al
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x420], eax
mov dword [esi + 0x424], ebx
mov cl, byte [esp + 0x17]
push 0xc
mov byte [esp + 0x158], 4
mov byte [esi + 0x428], cl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 8
mov dword [esi + 0x42c], eax
mov dword [esi + 0x430], ebx
lea ecx, [esi + 0x638]
mov byte [esp + 0x150], 5
call fcn.00403810
mov dl, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x154], 6
mov byte [esi + 0x654], dl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0x658], eax
mov dword [esi + 0x65c], ebx
mov byte [esp + 0x150], 7
mov dword [esi], 0x41f090
mov dword [esi + 0x3cc], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push ebx
push str.LastUsePort
push str.Configure
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
cmp eax, ebx
mov dword [esi + 0x3f4], eax
je 0x418b98
cmp eax, 0x117
jb 0x418b98
mov dword [esi + 0x3f4], ebx
lea edi, [esi + 0x3d0]
mov ecx, 8
xor eax, eax
push 0x100
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x418bc3
lea ecx, [esp + 0x48]
push ecx
jmp 0x418bc8
push str.localhost
lea eax, [esi + 0x3d0]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov eax, 1
lea ecx, [esi + 0x398]
mov dword [esi + 0x3f8], eax
push 0x4247e8
mov dword [esi + 0x3fc], eax
mov dword [esi + 0x400], ebx
mov dword [esi + 0x418], ebx
mov dword [esi + 0x404], 2
mov dword [esi + 0x408], 0xa
mov dword [esi + 0x40c], ebx
mov dword [esi + 0x410], ebx
call sub.MFC42.DLL_CString::operator_1
lea edi, [esi + 0x434]
mov ecx, 0x80
xor eax, eax
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x18]
mov word [esi + 0x634], bx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x20
xor eax, eax
lea edi, [esi + 0x59]
push 0x4247e8
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esi + 0xda]
mov ecx, 0x20
lea edi, [esi + 0xe5]
mov dword [eax], edx
mov dword [eax + 4], edx
mov word [eax + 8], dx
mov byte [eax + 0xa], dl
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esi + 0x165]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esi + 0x265]
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esi + 0x378]
mov dword [esi + 0x368], ebx
mov dword [esi + 0x36c], ebx
mov dword [esi + 0x370], ebx
mov dword [esi + 0x374], ebx
rep stosd dword es:[edi], eax
mov ecx, ebp
mov byte [esi + 0x39c], bl
mov dword [esi + 0x3a0], ebx
mov dword [esi + 0x3a8], ebx
mov dword [esi + 0x3ac], ebx
mov dword [esi + 0x3a4], 0xffffffff
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
call fcn.0041b5bc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 8
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [esp + 0x150], 9
xor edi, edi
push edi
lea ecx, [esp + 0x18]
push str.nb__d_
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
push eax
call fcn.004182d0
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0x154], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], 9
call sub.MFC42.DLL_CString::CString
push 0x4231d0
lea ecx, [esp + 0x24]
push ebp
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x158], 0xb
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 9
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x2c]
cmp al, bl
jne 0x418df8
call sub.MFC42.DLL_CFileFind::Close
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4247e8
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x15c], 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x15c], 9
call fcn.00418550
add esp, 0xc
inc edi
cmp edi, 0x64
jl 0x418d16
jmp 0x418e09
call sub.MFC42.DLL_CFileFind::Close
mov ebp, dword [ebp]
push ebp
call fcn.00401e50
add esp, 4
push 0x4231c8
lea ecx, [esi + 0x414]
call sub.MFC42.DLL_CString::operator_1
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x150], 0xd
je 0x418e43
lea ecx, [esi + 0x638]
push ecx
mov ecx, eax
call fcn.004038a0
jmp 0x418e45
xor eax, eax
lea ecx, [esp + 0x2c]
mov dword [esi + 0x650], eax
mov byte [esp + 0x150], 8
call fcn.0041b74e
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 7
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x148]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x144
ret