Function at 0x10039840
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d4625
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x16c], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
cmp edi, eax
je 0x100398a7
mov esi, eax
nop word [eax + eax]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax]
add edi, 0x1c
cmp edi, esi
jne 0x10039890
mov esi, dword [ebp - 0x16c]
mov edi, dword [esi]
xor ecx, ecx
mov dword [esi + 4], edi
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], 7
mov word [ebp - 0x144], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0x168]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
add eax, 4
cmp edx, eax
je 0x1003990a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x100398f5
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x144]
call fcn.10002b70
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 4], 1
test ecx, ecx
jne 0x100399a2
push 0x100
push ecx
lea eax, [ebp - 0x110]
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x10039957
lea ecx, [ebp - 0x148]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
or eax, 0xffffffff
jmp 0x10039ba0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x12c]
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
mov byte [ebp - 4], 2
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], 8
lea ecx, [ebp - 0x144]
push dword [ebp - 0x118]
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 1
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
xorps xmm0, xmm0
mov dword [ebp - 0x164], 0
movups xmmword [ebp - 0x18c], xmm0
push 0
lea eax, [ebp - 0x160]
mov dword [ebp - 0x188], 2
push eax
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x18c], 1
movups xmmword [ebp - 0x17c], xmm0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x184], 1
call sym.XNewLookSch.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_LString::get_str_int_
cmp dword [ebp - 0x14c], 0x10
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x18c]
push ecx
lea eax, [ebp - 0x160]
cmovae eax, dword [ebp - 0x160]
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 4], 3
test eax, eax
jne 0x10039afd
mov edi, dword [ebp - 0x164]
test edi, edi
je 0x10039afd
mov eax, dword [edi + 0x18]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
je 0x10039ae1
push eax
lea ecx, [ebp - 0x12c]
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
mov byte [ebp - 4], 6
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x10039ac3
mov dword [eax], vtable.LString.0
lea ecx, [eax + 4]
mov dword [ebp - 0x168], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x128]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
cmp ecx, eax
je 0x10039abd
cmp dword [ebp - 0x114], 8
push dword [ebp - 0x118]
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.10002b70
add dword [esi + 4], 0x1c
jmp 0x10039ad2
lea ecx, [ebp - 0x12c]
push ecx
push eax
mov ecx, esi
call fcn.100124a0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 3
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10039a41
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x10039afd
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edx, dword [ebp - 0x14c]
cmp edx, 0x10
jb 0x10039b37
mov ecx, dword [ebp - 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039b2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039bbb
push edx
push ecx
call fcn.1008bfe4
add esp, 8
dec dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
cmp edx, 8
jb 0x10039b9e
mov ecx, dword [ebp - 0x144]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10039b94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039bbb
push edx
push ecx
call fcn.1008bfe4
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
int3