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

Disassembly:
push 0xffffffffffffffff
push 0x5d378d
mov eax, dword fs:[0]
push eax
sub esp, 0x160
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x24], eax
je 0x527765
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call ebx
cmp eax, 1
mov edi, dword [esp + 0x18c]
jne 0x527452
xor edx, edx
mov dh, byte [esp + 0x18e]
mov eax, edi
and eax, 0xff00
mov ecx, edi
shl ecx, 0x10
add eax, ecx
shl eax, 8
add eax, edx
mov ecx, edi
shr ecx, 0x18
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x184]
mov edx, eax
and edx, 0xff00
mov ecx, eax
shl ecx, 0x10
add edx, ecx
shl edx, 8
xor ecx, ecx
mov ch, byte [esp + 0x186]
shr eax, 0x18
mov dword [esp + 0x1c], 0x20000000
mov dword [esp + 0x20], 0x21436587
mov dword [esp + 0x24], 0x1000000
add edx, ecx
add edx, eax
mov eax, dword [esi + 0x30]
movzx ecx, byte [esi + 0x33]
mov dword [esp + 0x2c], edx
mov edx, eax
shl edx, 0x10
mov dword [esp + 0x14], eax
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edx, 8
add edx, eax
mov eax, dword [esi + 0x38]
add edx, ecx
movzx ecx, byte [esi + 0x3b]
mov dword [esp + 0x30], edx
mov edx, eax
mov dword [esp + 0x14], eax
shl edx, 0x10
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edx, 8
add edx, eax
add edx, ecx
mov dword [esp + 0x38], edx
jmp 0x527487
mov edx, dword [esp + 0x184]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x20], 0x87654321
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
cmp dword [esi + 0x34], 0
lea ebp, [esi + 0x34]
je 0x5274d0
lea edx, [esp + 0x34]
push edx
push 4
push ebp
call fcn.00531c90
add esp, 0xc
push 1
call ebx
cmp eax, 1
jne 0x5274d0
mov eax, dword [esp + 0x34]
mov ecx, eax
shl ecx, 0x10
mov edx, eax
and edx, 0xff00
add ecx, edx
xor edx, edx
mov dh, byte [esp + 0x36]
shl ecx, 8
shr eax, 0x18
add ecx, edx
add ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x5274de
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.005271d0
test eax, eax
je 0x527765
test edi, edi
mov ebx, 0x20
jbe 0x527761
cmp dword [esi + 0x9c], 0
push edi
je 0x527610
lea ecx, [esp + 0x18]
call fcn.0043ea40
mov ecx, dword [esp + 0x188]
mov ebp, dword [esp + 0x14]
push edi
push ecx
push ebp
mov dword [esp + 0x188], 0
call fcn.005b74f0
add esp, 0xc
push 1
push 2
lea ecx, [esp + 0x7c]
call fcn.0040b040
mov edx, dword [esi + 0x9c]
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x180], 1
call fcn.004024e0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x78]
call fcn.004094f0
mov ebx, eax
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0x180], 2
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov ebx, dword [ebx + 0x14]
mov byte [esp + 0x17c], 3
jb 0x527598
mov eax, dword [eax + 4]
jmp 0x52759b
add eax, 4
push edi
push ebp
push ebx
push eax
call fcn.00531cf0
add esp, 0x10
lea ecx, [esp + 0x58]
call fcn.0040bf30
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 1
call fcn.0040bf30
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push edi
push ebp
mov ecx, esi
call eax
lea ecx, [esp + 0xc0]
mov ebx, eax
mov byte [esp + 0x17c], 0
call fcn.00409e00
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0xc4], vtable.std::ios_base.0
call fcn.005cdcde
push ebp
mov dword [esp + 0x184], 0xffffffff
call fcn.00595eb8
add esp, 8
jmp 0x527683
cmp dword [ebp], 0
je 0x527670
lea ecx, [esp + 0x18]
call fcn.0043ea40
mov edx, dword [esp + 0x188]
mov ebp, dword [esp + 0x14]
push edi
push edx
push ebp
mov dword [esp + 0x188], 4
call fcn.005b74f0
push edi
push ebp
lea eax, [esi + 0x34]
push 4
push eax
call fcn.00531cf0
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
add esp, 0x1c
push edi
push ebp
mov ecx, esi
call edx
push ebp
mov ebx, eax
mov dword [esp + 0x180], 0xffffffff
call fcn.00595eb8
add esp, 4
jmp 0x527683
mov ecx, dword [esp + 0x18c]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, esi
call edx
mov ebx, eax
cmp ebx, edi
je 0x527761
push 1
push 2
lea ecx, [esp + 0xfc]
call fcn.0040b040
mov dword [esp + 0x17c], 5
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0x5f7cac
push ebx
lea eax, [esp + 0x100]
push str.send_:
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.0041ca40
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.0041ca40
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xf8]
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x17c], 6
jb 0x527702
mov eax, dword [eax + 4]
jmp 0x527705
add eax, 4
push eax
push str.BaseLib::CClientSession::SendCmd
push 0x166
push str..ywSMPpubClientSession.cpp
push 0x800
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x3c]
call fcn.0040bf30
lea ecx, [esp + 0x140]
mov dword [esp + 0x17c], 0xffffffff
call fcn.00409e00
lea edx, [esp + 0x140]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
mov eax, ebx
jmp 0x527767
xor eax, eax
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 0xc