Function at 0x40b110
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x40fefb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43ce6c]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call dword [sym.imp.mfc90.dll_Ordinal_316]
push 0x64
lea eax, [ebp]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x40b1b5
push str.Error_in_using_gethostname___to_get_Local_Machine_IP.
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 8
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push esi
push 2
call dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.0040e824
add ebp, 0x68
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x14]
push edx
push esi
push esi
lea eax, [ebp]
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x40b1d3
push str.Error_in_using_getaddrinfo___to_get_Local_Machine_IP.
jmp 0x40b16a
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_316]
push str.Device_IP_Address_List:_n
push 0x43e0e0
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], esi
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b2a1
mov eax, dword [eax + 0x18]
mov ebx, dword [eax + 4]
mov edx, ebx
shr edx, 0x18
mov ecx, ebx
shr ecx, 0x10
movzx esi, dl
mov eax, ebx
shr eax, 8
movzx edi, cl
push esi
mov byte [ebp - 0x16], al
movzx eax, al
push edi
mov byte [ebp - 0x1d], cl
movzx ecx, bl
push eax
push ecx
mov byte [ebp - 0x15], dl
lea edx, [ebp - 0x24]
push str._u._u._u._u
push edx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x2c]
add esp, 0x18
push esi
mov esi, dword [ebp - 0x28]
push edi
push edx
movzx eax, bl
push eax
push esi
push 0x43e0e0
push str._s_Device_IP_Address__d:__u._u._u._u_n
push 0x43e0e0
mov dword [ebp - 0x14], ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
inc esi
add esp, 0x20
mov dword [ebp - 0x28], esi
test bl, bl
jne 0x40b28e
cmp byte [ebp - 0x16], bl
jne 0x40b28e
cmp byte [ebp - 0x1d], bl
jne 0x40b28e
cmp byte [ebp - 0x15], bl
je 0x40b1f6
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x43e308
call fcn.0040ac50
jmp 0x40b1f6
lea ecx, [ebp - 0x24]
push ecx
mov ecx, 0x43e304
call dword [sym.imp.mfc90.dll_Ordinal_817]
push 0x32
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_2691]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
mov dword [0x43e0c8], eax
call dword [sym.imp.mfc90.dll_Ordinal_5835]
push 0x43e0e0
push 0
push 4
call dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
add esp, 0xc
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x40b18d