Function at 0x439015
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x501607
call fcn.00484660
sub esp, 0x60
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x439289
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [esi + 0x60]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x439278
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x439278
mov eax, dword [edi]
lea ecx, [ebp + 0xb]
push ecx
push 0x51f70c
push edi
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x1c], ebx
call dword [eax + 0x2c]
cmp byte [ebp + 0xb], 1
je 0x439091
cmp byte [ebp + 0xb], 2
jne 0x439278
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
push 0x51f740
push edi
call dword [eax + 0x34]
cmp dword [ebp - 0x1c], ebx
je 0x439278
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
push 0x51f71c
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
call dword [eax + 0x34]
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
push ecx
push 0x51f72c
push edi
call dword [eax + 0x34]
push dword [ebp - 0x1c]
call sub.WSOCK32.dll_inet_ntoa
mov edi, eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
cmp byte [ebp + 0xb], 1
mov byte [ebp - 4], 1
jne 0x43910c
mov dword [ebp - 0x18], 0x1f40
jmp 0x439130
cmp dword [ebp - 0x20], 4
jne 0x43911b
mov dword [ebp - 0x18], 0x1bb
jmp 0x439130
cmp dword [esi + 0x30], 1
jne 0x439129
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x18], eax
jmp 0x439130
mov dword [ebp - 0x18], 0x50
inc word [esi + 0xe8]
cmp dword [esi + 0x30], ebx
lea edi, [esi + 0x38]
setne al
inc eax
mov byte [esi + 0xea], al
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xec], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0xf0], eax
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x439165
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [esi + 0xf4], eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x68], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov byte [ebp - 4], 2
mov dword [ebp - 0x58], ebx
mov eax, dword [esi + 0x30]
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [ebp - 0x68]
push dword [eax]
push ebx
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esi + 0x48]
mov ecx, edi
mov dword [ebp - 0x58], eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea eax, [ebp - 0x3c]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [ebp - 0x18]
push ebx
mov dword [esi + 0x48], eax
xor eax, eax
cmp byte [ebp + 0xb], 1
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
setne al
mov dword [esi + 0x30], eax
mov al, byte [ebp + 0xb]
mov byte [ebp - 0x50], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], ebx
mov eax, dword [esi + 0x30]
mov byte [ebp - 4], 5
mov dword [ebp - 0x54], eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [ebp - 0x50]
push dword [eax]
push ebx
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esi + 0x48]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x84]
mov ecx, esi
call fcn.00438c90
mov ecx, esi
call fcn.00437f34
cmp word [esi + 0xe8], 0x14
jbe 0x43929c
push ebx
push 4
call sub.MFC42.DLL_AfxGetAppModuleState
mov ecx, dword [eax + 4]
call fcn.004141c4
mov dword [esi + 0x34], ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 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_]
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x439289
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov ecx, esi
call fcn.00437ea8
test eax, eax
setne byte [ebp - 0xd]
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 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_]
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4392e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [ebp - 0xd]
jmp 0x43928b