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

Disassembly:
push 0xffffffffffffffff
push 0x5d276d
mov eax, dword fs:[0]
push eax
sub esp, 0x160
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
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 0x5267c5
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 0x5264b2
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 0x5264e7
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 0x526530
lea edx, [esp + 0x34]
push edx
push 4
push ebp
call fcn.00530c70
add esp, 0xc
push 1
call ebx
cmp eax, 1
jne 0x526530
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 0x52653e
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00526230
test eax, eax
je 0x5267c5
test edi, edi
mov ebx, 0x20
jbe 0x5267c1
cmp dword [esi + 0x9c], 0
push edi
je 0x526670
lea ecx, [esp + 0x18]
call fcn.0043d9e0
mov ecx, dword [esp + 0x188]
mov ebp, dword [esp + 0x14]
push edi
push ecx
push ebp
mov dword [esp + 0x188], 0
call fcn.005b64d0
add esp, 0xc
push 1
push 2
lea ecx, [esp + 0x7c]
call fcn.0040b160
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.00409610
mov ebx, eax
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0x180], 2
call fcn.00409610
cmp dword [eax + 0x18], 0x10
mov ebx, dword [ebx + 0x14]
mov byte [esp + 0x17c], 3
jb 0x5265f8
mov eax, dword [eax + 4]
jmp 0x5265fb
add eax, 4
push edi
push ebp
push ebx
push eax
call fcn.00530cd0
add esp, 0x10
lea ecx, [esp + 0x58]
call fcn.0040c050
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 1
call fcn.0040c050
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.00409f20
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0xc4], vtable.std::ios_base.0
call fcn.005cccbe
push ebp
mov dword [esp + 0x184], 0xffffffff
call fcn.00594e98
add esp, 8
jmp 0x5266e3
cmp dword [ebp], 0
je 0x5266d0
lea ecx, [esp + 0x18]
call fcn.0043d9e0
mov edx, dword [esp + 0x188]
mov ebp, dword [esp + 0x14]
push edi
push edx
push ebp
mov dword [esp + 0x188], 4
call fcn.005b64d0
push edi
push ebp
lea eax, [esi + 0x34]
push 4
push eax
call fcn.00530cd0
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.00594e98
add esp, 4
jmp 0x5266e3
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 0x5267c1
push 1
push 2
lea ecx, [esp + 0xfc]
call fcn.0040b160
mov dword [esp + 0x17c], 5
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0x5f6cac
push ebx
lea eax, [esp + 0x100]
push str.send_:
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.0041c060
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.0041c060
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xf8]
call fcn.00409610
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x17c], 6
jb 0x526762
mov eax, dword [eax + 4]
jmp 0x526765
add eax, 4
push eax
push str.BaseLib::CClientSession::SendCmd
push 0x166
push str..ywSMPpubClientSession.cpp
push 0x800
call fcn.00409980
mov ecx, eax
call fcn.004fa910
lea ecx, [esp + 0x3c]
call fcn.0040c050
lea ecx, [esp + 0x140]
mov dword [esp + 0x17c], 0xffffffff
call fcn.00409f20
lea edx, [esp + 0x140]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
mov eax, ebx
jmp 0x5267c7
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