Function at 0x50f1a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x522d66
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x1c], ebx
call fcn.005147f0
sub esp, 0x1c
mov dword [esp + 0x3c], eax
lea eax, [edi + 0xe0]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
lea esi, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0xb0]
push ecx
mov ecx, esi
call fcn.004a53e0
add esp, 0x20
lea esi, [eax + 0x38]
push esi
lea ecx, [esp + 0x7c]
mov byte [esp + 0x124], 1
call dword [0x52e398]
mov edx, dword [esi + 0x1c]
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x1c], edx
mov byte [esp + 0x124], bl
call fcn.0042a830
mov edx, dword [esp + 0x1c]
mov ecx, edx
neg ecx
sbb ecx, ecx
test ecx, fcn.004b2590
je 0x50f301
mov esi, dword [esp + 0x20]
push esi
xor ecx, ecx
push edx
push ecx
mov eax, 0x50b600
push eax
push ecx
mov eax, esp
mov ecx, edi
mov dword [esp + 0x28], esp
call fcn.004e04d0
lea edx, [esp + 0x58]
push edx
call fcn.00512040
add esp, 0x18
mov byte [esp + 0x120], 2
mov ecx, dword [edi + 0x1d4]
add ecx, 0x374
push ecx
mov ecx, eax
call fcn.00512160
mov byte [esp + 0x120], bl
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x50f49b
add eax, 8
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
jne 0x50f49b
cmp eax, ebx
je 0x50f49b
lea ecx, [eax - 8]
cmp ecx, ebx
je 0x50f49b
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
jmp 0x50f49b
mov esi, dword [edi + 0x1d4]
add esi, 0x44
cmp byte [edi + 0x23c], bl
mov dword [esp + 0x14], esi
je 0x50f366
mov eax, dword [edi + 0x238]
cmp eax, 2
je 0x50f326
cmp eax, 3
jne 0x50f366
lea ecx, [esp + 0x78]
push ecx
lea ecx, [edi + 0x18c]
call dword [0x52e398]
cmp word [edi + 0x1a8], 2
jne 0x50f348
mov edx, dword [esp + 0x18]
push edx
jmp 0x50f34d
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, edi
mov word [edi + 0x1aa], ax
call fcn.0050fcb0
jmp 0x50f47f
mov eax, dword [esp + 0x18]
cdq
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0043f590
mov edx, dword [eax]
mov dword [esp + 0x3a], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x3e], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x42], edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x46], ecx
mov edx, dword [eax + 0x10]
add esp, 0xc
lea ecx, [esp + 0x2e]
mov dword [esp + 0x3e], edx
mov ax, word [eax + 0x14]
push ecx
lea ecx, [esp + 0x60]
mov word [esp + 0x46], ax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ebx, [esp + 0x5c]
lea ecx, [esp + 0x78]
lea esi, [esp + 0x94]
mov byte [esp + 0x120], 3
call fcn.0046be10
mov bl, 5
lea ecx, [esp + 0x5c]
mov byte [esp + 0x120], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
movzx edx, byte [0x55e419]
xor ecx, ecx
push ecx
mov eax, 0x50f6e0
push eax
movzx eax, byte [0x55e3f1]
push edx
push eax
push ecx
mov eax, esp
mov ecx, edi
mov dword [esp + 0x30], esp
call fcn.004e04d0
lea ecx, [esp + 0x30]
push ecx
call fcn.0050dd70
add esp, 0x18
mov edx, esi
push edx
mov byte [esp + 0x124], 6
mov edx, dword [edi + 0x1d4]
add edx, 0x1148
mov ecx, eax
call fcn.005121b0
mov byte [esp + 0x120], bl
mov eax, dword [esp + 0x24]
test eax, eax
je 0x50f466
add eax, 8
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50f466
test eax, eax
je 0x50f466
lea ecx, [eax - 8]
test ecx, ecx
je 0x50f466
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x124], 0
call fcn.00459c10
mov esi, dword [esp + 0x14]
cmp dword [edi + 0xdc], 3
jne 0x50f48d
mov eax, dword [esi + 0x44]
jmp 0x50f490
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
push eax
mov esi, edi
call fcn.004e06d0
lea ecx, [esp + 0x78]
mov dword [esp + 0x120], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00515015
mov esp, ebp
pop ebp
ret