Function at 0x48f8f0
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49e69a
push eax
mov eax, dword [0x4d2274]
mov dword fs:[0], esp
sub esp, 0x2e4
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x490076
mov eax, dword [0x4d2270]
cmp dword [eax - 8], ebx
je 0x490076
cmp dword [esp + 0x304], ebx
je 0x48fded
cmp dword [esp + 0x308], ebx
jle 0x48fded
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x10c]
push 0xc7
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, 0x48
xor eax, eax
lea edi, [esp + 0x1d4]
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
push 0x32
push edx
mov ecx, 0x4d226c
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x230]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString
lea edi, [esp + 0x10c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1fd]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 0x4a4830
mov eax, ecx
mov esi, edi
mov edi, edx
push 0xfa000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x38], ebp
and ecx, 3
mov dword [esp + 0x3c], ebx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x40], ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x3e800
xor eax, eax
mov dword [esp + 0x3c], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esp + 0x3c], 0xfa000
lea ecx, [esp + 0x34]
mov dword [esp + 0x2fc], ebx
push ecx
lea ecx, [esp + 0xb4]
call fcn.0048edf0
mov esi, 0x4a482c
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], 1
mov dword [esp + 0xb0], esi
call fcn.0048f8a0
mov byte [esp + 0x2fc], 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push 0x19000
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x6400
xor eax, eax
mov dword [esp + 0x20], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esp + 0x20], 0x19000
lea edx, [esp + 0x18]
lea ecx, [esp + 0x44]
push edx
call fcn.0048edf0
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 4
mov dword [esp + 0x44], esi
call fcn.0048f8a0
mov al, byte [esp + 0x30c]
mov byte [esp + 0x2fc], 5
cmp al, bl
mov eax, dword [esp + 0x80]
je 0x48fad4
cmp eax, ebx
je 0x48fade
mov dword [eax], ebx
jmp 0x48fade
cmp eax, ebx
je 0x48fade
mov dword [eax], 4
mov ebp, dword [esp + 0x308]
xor ecx, ecx
shl ebp, 4
cmp ebp, ebx
mov dword [esp + 0x24], 0x4a4830
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
jbe 0x48fb27
push ebp
call sub.MFC42.DLL_operatornew
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x2c], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x304]
mov esi, dword [esp + 0x308]
mov edi, ecx
mov byte [esp + 0x2fc], 6
mov dword [esp + 0x40], edi
mov ax, word [edx]
add edx, 2
and eax, 0xffff
mov dword [ecx], eax
mov dword [ecx + 4], 1
add ecx, 0x10
dec esi
jne 0x48fb43
lea eax, [esp + 0x10]
test eax, eax
je 0x48fb6b
cmp dword [esp + 0x10], ebx
jne 0x48fbe7
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
lea ecx, [esp + 0x54]
call fcn.0048eaa0
cmp eax, 1
je 0x48fb89
cmp eax, 2
je 0x48fb89
xor cl, cl
jmp 0x48fb8b
mov cl, 1
cmp eax, ebx
je 0x48fbe7
cmp cl, bl
je 0x48fbe7
cmp eax, 1
jne 0x48fbd7
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x48fbb0
lea ecx, [esp + 0x44]
call fcn.0048f740
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.0048ecc0
push ebp
push edi
lea ecx, [esp + 0x4c]
call fcn.0048f7c0
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x48fbf9
mov dword [esp + 0x10], eax
jmp 0x48fbe7
lea edx, [esp + 0x10]
test edx, edx
je 0x48fbf9
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
test eax, eax
je 0x48fbf9
cmp dword [esp + 0x10], ebx
jne 0x48fc8b
lea ecx, [esp + 0x10]
push ecx
push 0x4aee20
lea ecx, [esp + 0x50]
call fcn.0048eba0
cmp eax, 1
je 0x48fc1a
cmp eax, 2
je 0x48fc1a
xor cl, cl
jmp 0x48fc1c
mov cl, 1
cmp eax, ebx
je 0x48fc8b
cmp cl, bl
je 0x48fc8b
cmp eax, 1
jne 0x48fc7b
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x48fc41
lea ecx, [esp + 0x44]
call fcn.0048f740
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.0048ecc0
mov edi, 0x4aee20
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4aee20
lea ecx, [esp + 0x4c]
call fcn.0048f7c0
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x48fc9d
mov dword [esp + 0x10], eax
jmp 0x48fc8b
lea edx, [esp + 0x10]
test edx, edx
je 0x48fc9d
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
test eax, eax
je 0x48fc9d
cmp dword [esp + 0x10], ebx
jne 0x48fd2f
lea ecx, [esp + 0x10]
push ecx
push 0x4bb488
lea ecx, [esp + 0x50]
call fcn.0048eba0
cmp eax, 1
je 0x48fcbe
cmp eax, 2
je 0x48fcbe
xor cl, cl
jmp 0x48fcc0
mov cl, 1
cmp eax, ebx
je 0x48fd2f
cmp cl, bl
je 0x48fd2f
cmp eax, 1
jne 0x48fd1f
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x48fce5
lea ecx, [esp + 0x44]
call fcn.0048f740
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.0048ecc0
mov edi, 0x4bb488
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4bb488
lea ecx, [esp + 0x4c]
call fcn.0048f7c0
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x48fd2f
mov dword [esp + 0x10], eax
jmp 0x48fd2f
lea edx, [esp + 0x10]
test edx, edx
je 0x48fd2f
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1d4]
push eax
push 0x120
push ecx
lea ecx, [esp + 0x50]
call fcn.0048f5c0
cmp dword [esp + 0x10], ebx
je 0x48fdf7
mov eax, dword [esp + 0x28]
mov esi, 0x4a4830
cmp eax, ebx
mov dword [esp + 0x24], esi
je 0x48fd72
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x28], ebx
mov edi, 0x4a482c
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 7
call fcn.004901d0
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.0048f230
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
cmp eax, ebx
je 0x48fdb6
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xb0], edi
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], 8
call fcn.004901d0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.0048f230
lea ecx, [esp + 0x34]
call fcn.0048ed80
mov eax, 0xfffffffc
jmp 0x490079
mov eax, dword [0x4d2270]
lea edx, [esp + 0x33]
push edx
push eax
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov eax, dword [0x4d2274]
lea ecx, [esp + 0xb0]
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0xa8]
push eax
push ecx
mov byte [esp + 0x30c], 9
call fcn.00492400
add esp, 0x10
lea ecx, [esp + 0xa0]
mov esi, eax
mov byte [esp + 0x2fc], 6
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp esi, ebx
je 0x48fe9d
lea ecx, [esp + 0x24]
call fcn.0048ed80
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.0048f870
lea ecx, [esp + 0x18]
call fcn.0048ed80
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.0048f870
lea ecx, [esp + 0x34]
call fcn.0048ed80
mov eax, esi
jmp 0x490079
mov esi, dword [esp + 0x40]
lea edx, [esp + 0x10]
push edx
push ebp
push esi
lea ecx, [esp + 0xbc]
mov dword [esp + 0x1c], ebx
call fcn.004900a0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.0048f350
cmp dword [esp + 0x10], ebx
je 0x48ff2e
lea ecx, [esp + 0x14]
mov byte [esp + 0x2fc], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.0048ed80
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.0048f870
lea ecx, [esp + 0x18]
call fcn.0048ed80
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.0048f870
lea ecx, [esp + 0x34]
call fcn.0048ed80
mov eax, 0xfffffffb
jmp 0x490079
mov ecx, dword [esp + 0x304]
mov edx, dword [esp + 0x308]
lea eax, [esi + 8]
cmp byte [eax], bl
jne 0x48ff48
mov word [ecx], 0xffff
add eax, 0x10
add ecx, 2
dec edx
jne 0x48ff3f
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.SUCCESS
push edx
call esi
add esp, 8
test eax, eax
jne 0x48ffc1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2fc], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.0048ed80
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.0048f870
lea ecx, [esp + 0x18]
call fcn.0048ed80
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.0048f870
lea ecx, [esp + 0x34]
call fcn.0048ed80
xor eax, eax
jmp 0x490079
mov eax, dword [esp + 0x14]
push str.FAILURE
push eax
call esi
add esp, 8
mov byte [esp + 0x2fc], 6
test eax, eax
lea ecx, [esp + 0x14]
jne 0x49002b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.0048ed80
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.0048f870
lea ecx, [esp + 0x18]
call fcn.0048ed80
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.0048f870
lea ecx, [esp + 0x34]
call fcn.0048ed80
mov eax, 0xfffffffe
jmp 0x490079
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.0048ed80
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.0048f870
lea ecx, [esp + 0x18]
call fcn.0048ed80
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.0048f870
lea ecx, [esp + 0x34]
call fcn.0048ed80
mov eax, 0xfffffffa
jmp 0x490079
or eax, 0xffffffff
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f0
ret