Function at 0x414540
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470deb
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x491d58]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x491d58]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
mov dword [esp + 0x14], ebx
push 0x10010
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], 0x10010
call fcn.0043c2f4
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
je 0x4145c5
push 0x10010
push ebx
push edi
call fcn.00450420
add esp, 0xc
mov dword [esp + 0x190], ebx
mov eax, 7
mov dword [esp + 0x3c], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x90], eax
xor edx, edx
xor eax, eax
mov edi, 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x10010
mov dword [esp + 0x2c], esi
mov dword [esp + 0x5c], vtable.LogItem.0
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], ax
mov dword [esp + 0x98], edi
mov byte [esp + 0x190], 1
push str._DBG___0x
lea ecx, [esp + 0x60]
mov dword [esp + 0xa0], edi
call fcn.00403090
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
mov dword [eax + 0x3c], ebx
call fcn.00402fa0
push str.SocketServer::WaitForMessage_called._Trying_to_receive_message
push 0x48176c
mov ecx, eax
mov dword [eax + 0x3c], edi
call fcn.00403090
mov ecx, eax
call fcn.00403090
lea ecx, [esp + 0x5c]
mov byte [esp + 0x190], bl
call fcn.00402d10
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea esp, [esp]
push 0x10010
mov dword [esp + 0x3c], 0x10010
call fcn.0043c2f4
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
je 0x4146b0
push 0x10010
push ebx
push eax
call fcn.00450420
mov eax, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esi + 0x1d4]
push ebx
push 0x10010
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jl 0x414a66
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x5c], vtable.LogItem.0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], dx
mov dword [esp + 0x98], edi
mov byte [esp + 0x190], 3
mov dword [esp + 0x9c], edi
push 9
mov edi, 0xf
push str._DBG___0x
lea ecx, [esp + 0xec]
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
call fcn.00409480
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x1b0], 4
push ebx
lea eax, [esp + 0x108]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00409390
lea ecx, [esp + 0x180]
push ecx
call fcn.004025e0
add esp, 0x20
mov esi, eax
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x19c], 5
call fcn.0040afa0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x88]
call fcn.0040afa0
cmp dword [esp + 0x178], 8
jb 0x4147c2
mov edx, dword [esp + 0x164]
push edx
call fcn.0044d9f1
add esp, 4
xor eax, eax
mov byte [esp + 0x190], 3
cmp dword [esp + 0xf8], 0x10
mov dword [esp + 0x178], 7
mov dword [esp + 0x174], ebx
mov word [esp + 0x164], ax
jb 0x414800
mov ecx, dword [esp + 0xe4]
push ecx
call fcn.0044d9f1
add esp, 4
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov dword [esp + 0x9c], ebx
call fcn.00402fa0
push 2
mov esi, eax
push 0x48176c
lea ecx, [esp + 0xd0]
mov dword [esi + 0x3c], 1
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
call fcn.00409480
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x1b0], 6
push ebx
lea eax, [esp + 0xec]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00409390
lea ecx, [esp + 0x138]
push ecx
call fcn.004025e0
add esp, 0x20
mov dword [esp + 0x14], eax
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x19c], 7
call fcn.0040afa0
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x20]
push edx
call fcn.0040afa0
cmp dword [esp + 0x130], 8
jb 0x4148d6
mov eax, dword [esp + 0x11c]
push eax
call fcn.0044d9f1
add esp, 4
xor ecx, ecx
mov byte [esp + 0x190], 3
cmp dword [esp + 0xdc], 0x10
mov dword [esp + 0x130], 7
mov dword [esp + 0x12c], ebx
mov word [esp + 0x11c], cx
jb 0x414914
mov edx, dword [esp + 0xc8]
push edx
call fcn.0044d9f1
add esp, 4
push 0x10
push str.Bytes_received:
lea ecx, [esp + 0xac]
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
call fcn.00409480
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x1b0], 8
push ebx
lea eax, [esp + 0xc8]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00409390
lea ecx, [esp + 0x11c]
push ecx
call fcn.004025e0
add esp, 0x20
mov dword [esp + 0x14], eax
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x19c], 9
call fcn.0040afa0
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [esi + 0x20]
call fcn.0040afa0
cmp dword [esp + 0x114], 8
jb 0x4149cc
mov eax, dword [esp + 0x100]
push eax
call fcn.0044d9f1
add esp, 4
xor ecx, ecx
mov byte [esp + 0x190], 3
cmp dword [esp + 0xb8], 0x10
mov dword [esp + 0x114], 7
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], cx
jb 0x414a0a
mov edx, dword [esp + 0xa4]
push edx
call fcn.0044d9f1
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
call fcn.00402fa0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x190], 2
call fcn.00402d10
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
mov edx, esi
lea ecx, [esp + 0x38]
call fcn.00410c80
lea ecx, [esp + 0x50]
lea edx, [esp + 0x3c]
call fcn.00411070
add dword [esp + 0x28], esi
jmp 0x414dad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
mov dword [esp + 0x1c], eax
cmp eax, 0x2733
mov eax, 7
mov dword [esp + 0x5c], vtable.LogItem.0
mov dword [esp + 0x70], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x98], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x90], eax
jne 0x4151c5
xor eax, eax
mov dword [esp + 0x14], esi
mov word [esp + 0x60], dx
mov word [esp + 0x7c], ax
mov byte [esp + 0x190], 0xa
mov dword [esp + 0x9c], edi
push 9
mov edi, 0xf
push str._DBG___0x
lea ecx, [esp + 0xac]
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
call fcn.00409480
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x1b0], 0xb
push ebx
lea edx, [esp + 0xc8]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00409390
lea eax, [esp + 0x11c]
push eax
call fcn.004025e0
add esp, 0x20
mov esi, eax
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x19c], 0xc
call fcn.0040afa0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x88]
call fcn.0040afa0
cmp dword [esp + 0x114], 8
jb 0x414b6d
mov ecx, dword [esp + 0x100]
push ecx
call fcn.0044d9f1
add esp, 4
xor edx, edx
mov byte [esp + 0x190], 0xa
cmp dword [esp + 0xb8], 0x10
mov dword [esp + 0x114], 7
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], dx
jb 0x414bab
mov eax, dword [esp + 0xa4]
push eax
call fcn.0044d9f1
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
mov dword [esp + 0x9c], ebx
call fcn.00402fa0
push 2
mov esi, eax
push 0x48176c
lea ecx, [esp + 0xd0]
mov dword [esi + 0x3c], 1
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
call fcn.00409480
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x1b0], 0xd
push ebx
lea edx, [esp + 0xec]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00409390
lea eax, [esp + 0x138]
push eax
call fcn.004025e0
add esp, 0x20
mov edi, eax
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 4]
mov byte [esp + 0x198], 0xe
push edi
mov dword [esp + 0x20], ecx
call fcn.0040afa0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x20]
call fcn.0040afa0
cmp dword [esp + 0x130], 8
jb 0x414c7f
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.0044d9f1
add esp, 4
xor edx, edx
mov byte [esp + 0x190], 0xa
cmp dword [esp + 0xdc], 0x10
mov dword [esp + 0x130], 7
mov dword [esp + 0x12c], ebx
mov word [esp + 0x11c], dx
jb 0x414cbd
mov eax, dword [esp + 0xc8]
push eax
call fcn.0044d9f1
add esp, 4
push 0x20
mov edi, 0xf
push str.Resource_temporarily_unavailable
lea ecx, [esp + 0xec]
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
call fcn.00409480
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x1b0], 0xf
push ebx
lea edx, [esp + 0x108]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00409390
lea eax, [esp + 0x180]
push eax
call fcn.004025e0
add esp, 0x20
mov edi, eax
push 0xffffffffffffffff
push ebx
mov byte [esp + 0x198], 0x10
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0040afa0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x20]
call fcn.0040afa0
cmp dword [esp + 0x178], 8
jb 0x414d75
mov ecx, dword [esp + 0x164]
push ecx
call fcn.0044d9f1
add esp, 4
cmp dword [esp + 0xf8], 0x10
jb 0x414d8f
mov edx, dword [esp + 0xe4]
push edx
call fcn.0044d9f1
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x190], 2
call fcn.00402d10
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0xf
mov eax, dword [esp + 0x2c]
mov esi, 1
add eax, esi
mov dword [esp + 0x2c], eax
cmp eax, 0xa
je 0x414e09
mov byte [esp + 0x190], bl
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x414ddd
push eax
call fcn.0044d95d
add esp, 4
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004388a0
add esp, 8
test al, al
jne 0x414f6d
mov esi, dword [esp + 0x30]
mov edi, 1
jmp 0x414680
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x5c], vtable.LogItem.0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], dx
mov dword [esp + 0x98], esi
mov byte [esp + 0x190], 0x12
push str._ERR___0x
lea ecx, [esp + 0x60]
mov dword [esp + 0xa0], 3
call fcn.00403090
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
mov dword [eax + 0x3c], ebx
call fcn.00402fa0
push str.Timeout_occured
push 0x48176c
mov ecx, eax
mov dword [eax + 0x3c], esi
call fcn.00403090
mov ecx, eax
call fcn.00403090
lea ecx, [esp + 0x5c]
mov byte [esp + 0x190], 2
call fcn.00402d10
push edi
push str.Timeout_occured
lea ecx, [esp + 0xac]
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
call fcn.00409480
lea ebx, [esp + 0xa4]
lea esi, [esp + 0x5c]
mov byte [esp + 0x190], 0x13
call fcn.00407fd0
cmp dword [esp + 0xb8], 0x10
mov esi, vtable.iclsUtils::InvalidMessageException.0
mov dword [esp + 0x5c], esi
mov dword [esp + 0xa0], 0x400
jb 0x414f12
mov edx, dword [esp + 0xa4]
push edx
call fcn.0044d9f1
add esp, 4
xor eax, eax
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], eax
mov byte [esp + 0xa4], al
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x120]
mov byte [esp + 0x194], 0x14
call fcn.00402180
mov ecx, dword [esp + 0xa0]
push 0x4891f0
lea edx, [esp + 0x120]
push edx
mov dword [esp + 0x124], esi
mov dword [esp + 0x168], ecx
call fcn.00450350
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x5c], vtable.LogItem.0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], dx
mov dword [esp + 0x98], esi
mov byte [esp + 0x190], 0x15
push str._DBG___0x
lea ecx, [esp + 0x60]
mov dword [esp + 0xa0], esi
call fcn.00403090
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
mov dword [eax + 0x3c], ebx
call fcn.00402fa0
push str.Connection_closed_by_client
push 0x48176c
mov ecx, eax
mov dword [eax + 0x3c], esi
call fcn.00403090
mov ecx, eax
call fcn.00403090
lea ecx, [esp + 0x5c]
mov byte [esp + 0x190], bl
call fcn.00402d10
mov esi, dword [esp + 0x24]
cmp dword [esi], ebx
jne 0x41511a
mov edi, dword [esp + 0x28]
mov dword [esp + 0x190], ebx
push edi
mov dword [esi + 4], edi
call fcn.0043c2f4
add esp, 4
lea edx, [esp + 0x50]
push edx
mov edx, edi
lea ecx, [esp + 0x4c]
mov dword [esi], eax
call fcn.00410c80
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x50]
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
call fcn.00411070
mov edx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x5c], vtable.LogItem.0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], dx
mov dword [esp + 0x98], 1
lea eax, [esp + 0x24]
push eax
push str.Message_received._No_of_bytes_received:
mov byte [esp + 0x198], 0x18
push str._INF___N_A_
lea ecx, [esp + 0x68]
mov dword [esp + 0xa8], 2
call fcn.00403090
mov ecx, eax
call fcn.00403090
mov ecx, eax
call fcn.004109b0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x190], bl
call fcn.00402d10
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x4150f4
push eax
call fcn.0044d95d
add esp, 4
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0044ce4c
mov esp, ebp
pop ebp
ret 4
push 0x32
push str.Alloc_may_be_called_only_on_not_initialized_Buffer
lea ecx, [esp + 0x108]
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
call fcn.00409480
mov byte [esp + 0x190], 0x16
lea ecx, [esp + 0x11c]
mov dword [esp + 0x14], 1
call fcn.0044ceae
push 0xffffffffffffffff
mov dword [esp + 0x194], 0x17
push ebx
lea ecx, [esp + 0x108]
push ecx
lea ecx, [esp + 0x134]
mov dword [esp + method.BaseException.virtual_0], vtable.BaseException.0
mov dword [esp + 0x148], edi
mov dword [esp + 0x144], ebx
mov byte [esp + 0x134], bl
call fcn.00409390
push 0x488fcc
lea edx, [esp + 0x120]
mov byte [esp + 0x194], 0x16
push edx
mov dword [esp + method.BaseException.virtual_0], vtable.AssertException.0
call fcn.00450350
xor ecx, ecx
mov dword [esp + 0x24], esi
mov word [esp + 0x60], cx
mov word [esp + 0x7c], dx
mov byte [esp + 0x190], 0x11
push str._ERR___0x
lea ecx, [esp + 0x60]
mov dword [esp + 0xa0], 3
call fcn.00403090
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov dword [eax + 0x3c], ebx
call fcn.00402fa0
lea edx, [esp + 0x1c]
push edx
push str.Receiving_message_failed_with_error:
push 0x48176c
mov ecx, eax
mov dword [eax + 0x3c], edi
call fcn.00403090
mov ecx, eax
call fcn.00403090
mov ecx, eax
call fcn.00402fa0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x190], 2
call fcn.00402d10
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x5c]
call fcn.00411a00
push 0x4891e0
lea eax, [esp + 0x60]
push eax
call fcn.00450350
int3