Function at 0x45111674
Capabilities:
Resolve dns

Disassembly:
push ebp
sub esp, 0x78
lea ebp, [esp - 4]
mov eax, dword [0x4512b304]
xor eax, ebp
mov dword [ebp + 0x78], eax
push 0x2c
mov eax, 0x45117b75
call fcn.45115ec3
mov edi, dword [ebp + 0x88]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov esi, ecx
test eax, 0xfffffffe
jne 0x451116b9
push 0x4511d1fc
call fcn.45106fe5
pop ecx
xor al, al
jmp 0x4511196b
mov eax, dword [ebp + 0x84]
push edi
mov dword [esi + 0x28], eax
push dword [edi + 0x10]
lea ecx, [ebp - 0x14]
call fcn.45103298
push edi
push dword [edi + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.45103298
push dword [ebp - 0x10]
lea ecx, [esi + 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.45103bc9
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x4511171b
push 0x18
pop edi
mov eax, dword [esi + 8]
push dword [edi + eax]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
mov dword [edi + eax], ebx
add edi, 4
pop ecx
cmp edi, 0x58
jb 0x451116f8
push dword [esi + 8]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
push 0x58
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x45111739
push 0x58
push ebx
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, edi
jmp 0x4511173b
xor eax, eax
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esi + 8], eax
call fcn.4511159d
mov ax, word [eax]
mov ecx, edi
mov word [esi + 0x60], ax
call fcn.451114cb
mov ecx, dword [esi + 8]
xor eax, eax
cmp dword [esi + 0x70], ebx
push 0x18
setne al
inc eax
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x28]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 8]
mov cx, word [esi + 0x60]
mov word [eax + 0x10], cx
mov eax, dword [esi + 8]
mov dword [eax + 0x14], esi
pop eax
mov ecx, dword [esi + 8]
mov dword [eax + ecx], ebx
add eax, 4
cmp eax, 0x58
jb 0x45111781
cmp dword [esi + 0x70], ebx
jne 0x4511193a
push 0x10
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x451117af
mov dword [eax], 2
mov dword [eax + 4], ebx
jmp 0x451117b1
xor eax, eax
mov dword [eax + 4], ebx
mov dword [eax + 8], 0x1104
mov ecx, dword [esi + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 8]
xor edi, edi
lea edx, [ecx + 0x18]
cmp dword [edx], ebx
je 0x451117d6
inc edi
add edx, 4
cmp edi, 0x10
jl 0x451117c9
cmp edi, 0x10
je 0x451116b2
mov dword [ecx + edi*4 + 0x18], eax
cmp dword [esi + 0x70], ebx
jne 0x4511193a
mov ecx, dword [esi + 0x88]
cmp ecx, ebx
je 0x4511193a
mov eax, dword [ecx]
lea edx, [ebp]
push edx
call dword [eax + 0x10]
mov dword [ebp - 4], ebx
cmp dword [ebp], ebx
je 0x4511192e
push 0x210
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x45111829
mov ecx, eax
call fcn.45111156
mov edi, eax
jmp 0x4511182b
xor edi, edi
xor eax, eax
cmp dword [ebp], 1
setne al
mov dword [edi + 4], eax
mov ax, word [ebp + 0x20]
mov word [edi + 0xc], ax
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x5c]
push eax
call sym.sesscomm.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_ProtoA2U::app2net_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
lea eax, [ebp + 0x5c]
push eax
mov byte [ebp - 4], 1
call sym.sesscomm.dll_public:_static_unsigned_int___cdecl_ProtoHelper::IPToUint32_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov dword [edi + 8], eax
cmp eax, 0xffffffff
jne 0x45111882
lea ecx, [ebp + 0x5c]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x45111882
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [edi + 8], eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
call sym.sesscomm.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_ProtoA2U::app2net_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea eax, [edi + 0xe]
push eax
call sub.MSVCR90.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
call sym.sesscomm.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_ProtoA2U::app2net_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea eax, [edi + 0x10e]
push eax
call sub.MSVCR90.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esi + 8]
xor edx, edx
lea ecx, [eax + 0x18]
cmp dword [ecx], ebx
je 0x45111902
inc edx
add ecx, 4
cmp edx, 0x10
jl 0x451118f5
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x5c]
cmp edx, 0x10
jne 0x45111924
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.45111183
jmp 0x451116b2
mov dword [eax + edx*4 + 0x18], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.45111183
call sym.sesscomm.dll_public:_static_unsigned_int___cdecl_ProtoTime::currentSystemTime_void_
push dword [esi + 8]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x6c], 1
call sub.netmod.dll_int___cdecl_NetMod::ConnCreate_struct_NetMod::ConnAttr__
mov dword [esi + 0x30], eax
call sym.sesscomm.dll_public:_static_unsigned_int___cdecl_ProtoTime::currentSystemTime_void_
push ebx
push ebx
push dword [esi + 0x30]
mov dword [esi + 0x58], eax
call sub.netmod.dll_int___cdecl_NetMod::ConnConnect_int__unsigned_int__unsigned_short_int_
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.45115eb4
add ebp, 0x7c
leave
ret 8