Function at 0x4381f0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49b88b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf68
mov eax, dword [0x4bc410]
xor eax, ebp
mov dword [esp + 0xf60], eax
push ebx
push esi
push edi
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x28]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x74], ecx
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0x48]
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebp + 0x50]
mov dword [esp + 0x80], edx
mov edx, dword [ebp + 0x54]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x88], ecx
mov ecx, dword [ebp + 0x5c]
mov dword [esp + 0x60], edx
mov edx, dword [ebp + 0x60]
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x68]
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x8c], edx
mov edx, dword [ebp + 0x6c]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x84], ecx
mov ecx, dword [ebp + 0x74]
mov dword [esp + 0x48], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x78], ecx
call dword [sym.imp.MSVCR71.dll_rand]
mov edx, eax
xor eax, eax
mov ecx, 0x180
lea edi, [esp + 0x368]
rep stosd dword es:[edi], eax
mov byte [esp + 0x369], al
mov byte [esp + 0x368], al
mov byte [esp + 0x376], al
mov byte [esp + 0x375], al
mov byte [esp + 0x374], al
mov eax, edx
mov dword [esp + 0x4c], edx
cdq
mov cl, 8
mov dword [esp + 0x1c], 0x38
mov dword [esp + 0x28], 0xffffffff
mov byte [esp + 0x36f], 0x60
mov byte [esp + 0x36e], 0x39
mov byte [esp + 0x36d], 0x20
mov byte [esp + 0x36c], 0x54
mov byte [esp + 0x36b], 0x34
mov byte [esp + 0x36a], 8
mov byte [esp + 0x377], 0x66
mov byte [esp + 0x37b], al
call fcn.00496e10
mov byte [esp + 0x37a], al
mov cl, 8
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x379], al
call fcn.00496e10
mov byte [esp + 0x378], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x38], edx
xor edx, edx
mov cl, 8
mov byte [esp + 0x37f], al
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x37e], al
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x37d], al
call fcn.00496e10
mov ecx, dword [esi + 8]
mov byte [esp + 0x37c], al
mov eax, dword [esi + 4]
mov dword [esp + 0x38], edx
mov edx, dword [esi]
mov dword [esp + 0x384], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x380], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x390], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x38c], edx
cdq
mov dword [esp + 0x388], ecx
mov cl, 8
mov byte [esp + 0x397], al
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x396], al
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x395], al
call fcn.00496e10
mov byte [esp + 0x394], al
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x38], edx
cdq
mov cl, 8
mov byte [esp + 0x39b], al
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x39a], al
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x399], al
call fcn.00496e10
push 0x2c
lea ecx, [esp + 0x378]
push ecx
lea ecx, [ebx + 0x10c8]
mov dword [esp + 0x40], edx
mov byte [esp + 0x3a0], al
mov byte [esp + 0x3a7], 1
mov byte [esp + 0x3a6], 0
mov byte [esp + 0x3a5], 0
mov byte [esp + 0x3a4], 0
call fcn.00402fc0
cdq
mov cl, 8
mov byte [esp + 0x373], al
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x372], al
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x371], al
call fcn.00496e10
mov byte [esp + 0x370], al
mov eax, dword [ebx + 0x1bb8]
test eax, eax
mov dword [esp + 0x38], edx
push 0x38
je 0x43854a
lea edx, [esp + 0x36c]
push edx
lea eax, [esp + 0x37a]
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
lea ecx, [ebx + 0x1bbc]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov cx, word [ecx + 8]
add esp, 0xc
mov dword [esp + 0x368], edx
push 0x38
lea edx, [esp + 0x376]
mov word [esp + 0x374], cx
push edx
lea ecx, [ebx + 0x1bc8]
mov dword [esp + 0x374], eax
call fcn.0047cfa0
mov dword [esp + 0x1c], 0x42
jmp 0x43855d
lea eax, [esp + 0x36c]
push eax
lea ecx, [ebx + 0x14cc]
call fcn.0047cfa0
push 2
mov ecx, ebx
call fcn.00435510
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x439d6f
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 0x2c8], ecx
mov dword [esp + 0x2cc], ecx
mov dword [esp + 0x2d0], ecx
push edx
mov dword [esp + 0x2d8], ecx
mov word [esp + 0x2cc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov word [esp + 0x2ce], ax
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x2cc], eax
jne 0x4385f0
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x438635
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
mov dword [esp + 0x2d0], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
push edi
call fcn.0045f0f0
add esp, 8
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x43884c
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438601
sub eax, edx
cmp eax, 4
jbe 0x43884c
push 2
mov ecx, ebx
call fcn.00435510
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
jne 0x438671
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x439d6f
lea edx, [esp + 0xac]
push edx
push edi
call fcn.0045f2d0
add esp, 8
test eax, eax
je 0x438661
mov eax, dword [esp + 0xac]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x2cc], eax
jmp 0x4385f0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x439d6f
mov eax, dword [esp + 0x2c8]
mov ecx, dword [esp + 0x2cc]
mov edx, dword [esp + 0x2d0]
mov dword [esp + 0x338], eax
mov eax, dword [esp + 0x2d4]
push edi
mov dword [esp + 0x340], ecx
mov dword [esp + 0x344], edx
mov dword [esp + 0x348], eax
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x33c], eax
jne 0x4386d5
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x438833
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x33c], eax
mov dword [esp + 0xc], 3
mov esi, dword [sym.imp.WS2_32.dll_recvfrom]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
dec eax
push 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2cc]
push eax
push 0
push edi
lea ecx, [esp + 0x378]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x438859
push 0x10
lea ecx, [esp + 0x33c]
push ecx
push 0
push edi
lea edx, [esp + 0x378]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esp + 0x20], 0xc
mov edi, dword [esp + 0x20]
dec edi
push 0x64
mov ecx, ebx
mov dword [esp + 0x24], edi
call fcn.00435430
cmp eax, 0x42b
je 0x439d6f
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x34c]
push ecx
push 0
push 0x5fc
lea edx, [esp + 0x978]
push edx
push eax
mov dword [esp + 0x54], 0x10
call esi
mov edi, eax
cmp edi, 0x3e
mov dword [esp + 0x34], edi
jge 0x4387d5
cmp dword [esp + 0x28], 0xffffffff
je 0x4387cc
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x34c]
push edx
push 0
push 0x5fc
lea eax, [esp + 0x978]
push eax
push ecx
mov dword [esp + 0x54], 0x10
call esi
mov edi, eax
mov dword [esp + 0x34], edi
cmp edi, 0x3e
jl 0x438929
mov eax, dword [ebx + 0x1bb8]
test eax, eax
je 0x438866
push 0xa
lea edx, [esp + 0x96c]
lea esi, [ebx + 0x1be4]
push edx
mov ecx, esi
call fcn.0047ce70
sub edi, 0xa
push edi
lea eax, [esp + 0x976]
push eax
lea ecx, [esp + 0x970]
push ecx
mov dword [esp + 0x40], edi
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
push edi
lea edx, [esp + 0x96c]
push edx
mov ecx, esi
call fcn.0047cff0
mov esi, dword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x43887a
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push ecx
call edi
mov edx, dword [esp + 0x28]
push edx
call edi
jmp 0x439d6f
mov dword [esp + 0xc], 5
jmp 0x4386dd
mov dword [esp + 0x20], 0x14
jmp 0x438741
push edi
lea eax, [esp + 0x96c]
push eax
lea ecx, [ebx + 0x14cc]
call fcn.0047cff0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
push ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xc0]
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x98]
push edx
push eax
push ecx
push edi
lea edx, [esp + 0x9c4]
push edx
mov ecx, ebx
call fcn.00435780
test eax, eax
jne 0x438980
mov eax, dword [esp + 0x20]
test eax, eax
jg 0x438741
mov eax, dword [esp + 0xc]
test eax, eax
jg 0x4386e3
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
je 0x4389a7
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438950
sub eax, edx
cmp eax, 4
jbe 0x4389a7
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push ecx
call edi
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x439d6f
push eax
call edi
jmp 0x439d6f
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push eax
call edi
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x439ed9
push eax
call edi
mov eax, 1
jmp 0x439d71
lea ecx, [esp + 0x14]
call dword [0x49f754]
lea ecx, [esp + 0x10]
mov dword [esp + 0xf7c], esi
call dword [0x49f754]
lea ecx, [esp + 0x2d8]
mov byte [esp + 0xf7c], 1
call fcn.0041b340
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc4]
push ecx
mov byte [esp + 0xf94], 2
mov dword [esp + 0xc0], 0x10
call fcn.0043bee0
mov eax, dword [ebx + 0x14e8]
add esp, 0x18
cmp eax, esi
jge 0x438a97
cmp dword [esp + 0xb0], esi
je 0x438a5d
lea ecx, [esp + 0x14]
mov dword [ebx + 0x14e8], esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [ebx + 0x14ec]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x438a44
mov edx, dword [esp + 0xb4]
mov dword [ebx + 0x1524], edx
jmp 0x438a97
cmp dword [esp + 0x98], esi
je 0x438a97
lea ecx, [esp + 0x10]
mov dword [ebx + 0x14e8], 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [ebx + 0x14ec]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x438a80
mov eax, dword [esp + 0x9c]
mov dword [ebx + 0x1524], eax
lea eax, [ebx + 0x14ec]
push eax
lea ecx, [esp + 0x2e0]
call dword [sym.imp.MSVCP71.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__::operator_char_const__]
mov cx, word [ebx + 0x1524]
lea eax, [ebx + 0x1528]
mov word [esp + 0x2f8], cx
push eax
lea ecx, [esp + 0x300]
call dword [sym.imp.MSVCP71.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__::operator_char_const__]
lea eax, [ebx + 0x1560]
push eax
lea ecx, [esp + 0x31c]
call dword [sym.imp.MSVCP71.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__::operator_char_const__]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x35c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [esp + 0x35a]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp dword [ebx + 0x14e8], esi
movzx eax, ax
jne 0x439012
push eax
xor edi, edi
push edi
lea eax, [esp + 0x2e0]
lea ecx, [ebx + 4]
push eax
mov dword [ebx + 0x1bac], edi
mov dword [esp + 0x38], ecx
call fcn.0045da90
mov dword [ebx + 0x1bac], edi
mov esi, 0xc8
push 0x64
mov ecx, ebx
dec esi
call fcn.00435430
cmp eax, 0x42b
je 0x439881
cmp dword [ebx + 0x1bac], edi
jne 0x438b64
cmp esi, edi
jg 0x438b43
cmp dword [ebx + 0x1bac], 1
jne 0x438da0
mov dword [esp + 0xc], 2
lea esp, [esp]
mov ecx, dword [esp + 0x2cc]
mov dx, word [esp + 0x2ca]
mov esi, dword [esp + 0xc]
mov dword [ebx + 0x159c], ecx
mov ecx, dword [esp + 0x1c]
dec esi
mov word [ebx + 0x15a0], dx
mov edx, ecx
shr ecx, 2
mov dword [esp + 0xc], esi
lea eax, [ebx + 0x1598]
mov byte [eax], 0
mov byte [ebx + 0x1599], 0
mov byte [ebx + 0x159a], 0
mov byte [ebx + 0x159b], 1
lea esi, [esp + 0x368]
lea edi, [ebx + 0x15a2]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x10
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x1b9c]
push ecx
push 0
mov ecx, edx
add ecx, 0xa
push ecx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esp + 0x20], 0x14
mov dword [ebx + 0x1b98], 0
mov esi, dword [esp + 0x20]
dec esi
push 0x64
mov ecx, ebx
mov dword [esp + 0x24], esi
call fcn.00435430
cmp eax, 0x42b
je 0x439881
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x34c]
push edx
push 0
push 0x5fc
lea eax, [esp + 0x978]
push eax
push ecx
mov dword [esp + 0x54], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
cmp esi, 0x48
mov dword [esp + 0x34], esi
jl 0x438d88
mov eax, dword [ebx + 0x1bb8]
test eax, eax
je 0x438cbe
push 0xa
lea edx, [esp + 0x976]
lea edi, [ebx + 0x1be4]
push edx
mov ecx, edi
call fcn.0047ce70
sub esi, 0xa
push esi
lea eax, [esp + 0x980]
push eax
lea ecx, [esp + 0x97a]
push ecx
mov dword [esp + 0x40], esi
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
add esi, 0xfffffff6
push esi
lea edx, [esp + 0x976]
push edx
mov ecx, edi
jmp 0x438cd0
add esi, 0xfffffff6
push esi
lea eax, [esp + 0x976]
push eax
lea ecx, [ebx + 0x14cc]
call fcn.0047cff0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
push ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xc0]
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x98]
push edx
push eax
push ecx
push esi
lea edx, [esp + 0x9ce]
push edx
mov ecx, ebx
call fcn.00435780
test eax, eax
jne 0x438e97
mov eax, dword [esp + 0x20]
test eax, eax
jg 0x438c11
mov eax, dword [esp + 0xc]
test eax, eax
jg 0x438b80
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.0045da60
xor edi, edi
push 2
mov ecx, esi
mov dword [ebx + 0x1bac], edi
call fcn.0045e030
mov ecx, dword [esp + 0x2cc]
push 0x50
push ecx
mov dword [ebx + 0x1b98], edi
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
lea edx, [esp + 0x2e0]
push edx
mov ecx, esi
call fcn.0045da90
mov esi, 0xc8
push 0x64
mov ecx, ebx
dec esi
call fcn.00435430
cmp eax, 0x42b
je 0x439881
cmp dword [ebx + 0x1bac], edi
jne 0x438e08
cmp esi, edi
jg 0x438de7
cmp dword [ebx + 0x1bac], 1
jne 0x439009
xor eax, eax
lea edx, [ebx + 0x1598]
mov ecx, 0x180
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1bb8]
test eax, eax
je 0x438edc
lea eax, [ebx + 0x1bbc]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov ax, word [eax + 8]
mov dword [edx + 4], ecx
mov word [edx + 8], ax
mov edx, dword [str.GET__QUERY]
lea ecx, [ebx + 0x15a2]
mov dword [ecx], edx
mov eax, dword [0x4a646c]
mov dword [ecx + 4], eax
mov dx, word [0x4a6470]
mov word [ecx + 8], dx
mov al, byte [0x4a6472]
mov byte [ecx + 0xa], al
push 0x14
lea ecx, [ebx + 0x15a2]
push ecx
lea ecx, [ebx + 0x1bc8]
mov dword [esp + 0x14], 0xa
call fcn.0047cfa0
jmp 0x438eff
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push eax
mov dword [ebx + 0x1bb4], 1
call esi
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x438eba
push eax
call esi
mov ecx, dword [esp + 0x2c]
call fcn.0045da60
lea ecx, [esp + 0x2d8]
mov byte [esp + 0xf7c], 1
call fcn.0041a980
jmp 0x439ec5
mov eax, dword [str.GET__QUERY]
mov dword [edx], eax
mov ecx, dword [0x4a646c]
mov dword [edx + 4], ecx
mov ax, word [0x4a6470]
mov word [edx + 8], ax
mov cl, byte [0x4a6472]
mov byte [edx + 0xa], cl
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
lea eax, [esi + 8]
cdq
mov cl, 8
mov byte [ebx + edi + 0x15af], al
call fcn.00496e10
mov cl, 8
mov byte [ebx + edi + 0x15ae], al
call fcn.00496e10
mov cl, 8
mov byte [ebx + edi + 0x15ad], al
call fcn.00496e10
mov byte [ebx + edi + 0x15ac], al
mov eax, dword [esp + 0xc]
mov ecx, esi
lea edi, [ebx + edi + 0x15b4]
mov dword [esp + 0x24], edx
mov edx, ecx
shr ecx, 2
mov byte [edi - 1], 0
mov byte [edi - 2], 0
mov byte [edi - 3], 0
mov byte [edi - 4], 0
lea esi, [esp + 0x368]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
mov ecx, edx
lea edx, [eax + ecx + 0x1c]
push edx
lea eax, [ebx + 0x1598]
push eax
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, 0x64
mov dword [ebx + 0x1b98], 0
jmp 0x438fa0
dec esi
push 0x64
mov ecx, ebx
mov dword [esp + 0x10], esi
call fcn.00435430
cmp eax, 0x42b
je 0x439881
mov eax, dword [ebx + 0x1b98]
mov edx, 4
cmp eax, edx
jl 0x439005
xor eax, eax
lea esi, [ebx + 0x1598]
xor ecx, ecx
mov dword [esp + 0x20], edx
shld ecx, eax, 8
shl eax, 8
mov edi, eax
movzx eax, byte [esi]
cdq
or ecx, edx
mov edx, dword [esp + 0x20]
or edi, eax
inc esi
dec edx
mov eax, edi
mov dword [esp + 0x20], edx
jne 0x438fd6
cmp dword [ebx + 0x1b98], eax
jge 0x439243
mov esi, dword [esp + 0xc]
test esi, esi
jg 0x438fa0
mov ecx, dword [esp + 0x2c]
call fcn.0045da60
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push edx
call edi
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x43902b
push eax
call edi
mov eax, dword [esp + 0x98]
test eax, eax
je 0x4390b2
lea ecx, [esp + 0x10]
mov dword [ebx + 0x14e8], 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [ebx + 0x14ec]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x439050
mov eax, dword [esp + 0x9c]
mov dword [ebx + 0x1524], eax
lea eax, [ebx + 0x14ec]
push eax
lea ecx, [esp + 0x2e0]
call dword [sym.imp.MSVCP71.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__::operator_char_const__]
mov cx, word [ebx + 0x1524]
lea eax, [ebx + 0x1528]
mov word [esp + 0x2f8], cx
push eax
lea ecx, [esp + 0x300]
call dword [sym.imp.MSVCP71.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__::operator_char_const__]
lea eax, [ebx + 0x1560]
push eax
lea ecx, [esp + 0x31c]
call dword [sym.imp.MSVCP71.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__::operator_char_const__]
cmp dword [ebx + 0x14e8], 1
jne 0x43956c
mov eax, dword [esp + 0x2ca]
lea edx, [esp + 0x2d8]
push edx
xor edi, edi
lea esi, [ebx + 0x5c]
push eax
mov dword [ebx + 0x1bb0], edi
mov dword [esp + 0x28], esi
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esp + 0x2d0]
movzx ecx, ax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, esi
call fcn.0045e110
mov dword [ebx + 0x1bac], edi
mov edi, 0xc8
lea esp, [esp]
push 0x64
mov ecx, ebx
dec edi
call fcn.00435430
cmp eax, 0x42b
je 0x439881
mov eax, dword [ebx + 0x1bac]
test eax, eax
jne 0x439133
test edi, edi
jg 0x439110
cmp dword [ebx + 0x1bac], 1
je 0x4391b0
mov ecx, esi
mov dword [ebx + 0x1bb0], 1
call fcn.0045e270
mov ecx, dword [esp + 0x2cc]
lea eax, [esp + 0x2d8]
push eax
push 0x50
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, esi
call fcn.0045e110
mov dword [ebx + 0x1bac], 0
mov esi, 0xc8
lea esp, [esp]
push 0x64
mov ecx, ebx
dec esi
call fcn.00435430
cmp eax, 0x42b
je 0x439881
mov eax, dword [ebx + 0x1bac]
test eax, eax
jne 0x4391a3
test esi, esi
jg 0x439180
cmp dword [ebx + 0x1bac], 1
jne 0x439563
mov eax, dword [ebx + 0x1bb0]
test eax, eax
je 0x439468
xor eax, eax
lea edx, [ebx + 0x1598]
mov ecx, 0x180
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1bb8]
test eax, eax
je 0x4393c0
lea eax, [ebx + 0x1bbc]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov ax, word [eax + 8]
mov dword [edx + 4], ecx
mov word [edx + 8], ax
mov edx, dword [str.GET__QUERY]
lea ecx, [ebx + 0x15a2]
mov dword [ecx], edx
mov eax, dword [0x4a646c]
mov dword [ecx + 4], eax
mov dx, word [0x4a6470]
mov word [ecx + 8], dx
mov al, byte [0x4a6472]
mov byte [ecx + 0xa], al
push 0x14
lea ecx, [ebx + 0x15a2]
push ecx
lea ecx, [ebx + 0x1bc8]
mov dword [esp + 0x14], 0xa
call fcn.0047cfa0
jmp 0x4393e3
mov eax, dword [ebx + 0x1bb8]
test eax, eax
je 0x439295
push 0xa
lea ecx, [esp + 0x974]
lea esi, [ebx + 0x1be4]
push ecx
mov ecx, esi
call fcn.0047ce70
mov edi, dword [esp + 0x34]
sub edi, 0xa
push edi
lea edx, [esp + 0x97e]
push edx
lea eax, [esp + 0x978]
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
add edi, 0xfffffff8
lea ecx, [esp + 0x970]
push edi
push ecx
mov ecx, esi
jmp 0x4392ac
mov edx, dword [ebx + 0x1b98]
sub edx, 8
push edx
lea eax, [ebx + 0x15a0]
push eax
lea ecx, [ebx + 0x14cc]
call fcn.0047cff0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
push ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xc0]
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [ebx + 0x1b98]
push eax
push ecx
sub edx, 8
push edx
lea eax, [ebx + 0x15a0]
push eax
mov ecx, ebx
call fcn.00435780
test eax, eax
je 0x439009
mov ecx, dword [esp + 0x18]
mov esi, 1
push ecx
mov dword [ebx + 0x1bb4], esi
mov dword [ebx + 0x1bb0], esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x2c]
call fcn.0045da60
lea ecx, [esp + 0x2d8]
mov byte [esp + 0xf7c], 1
call fcn.0041a980
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, esi
jmp 0x439d71
mov eax, dword [str.GET__QUERY]
mov dword [edx], eax
mov ecx, dword [0x4a646c]
mov dword [edx + 4], ecx
mov ax, word [0x4a6470]
mov word [edx + 8], ax
mov cl, byte [0x4a6472]
mov byte [edx + 0xa], cl
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
lea eax, [esi + 8]
cdq
mov cl, 8
mov byte [ebx + edi + 0x15af], al
call fcn.00496e10
mov cl, 8
mov byte [ebx + edi + 0x15ae], al
call fcn.00496e10
mov cl, 8
mov byte [ebx + edi + 0x15ad], al
call fcn.00496e10
mov byte [ebx + edi + 0x15ac], al
mov eax, dword [esp + 0xc]
mov ecx, esi
lea edi, [ebx + edi + 0x15b4]
mov dword [esp + 0x30], edx
mov edx, ecx
shr ecx, 2
mov byte [edi - 1], 0
mov byte [edi - 2], 0
mov byte [edi - 3], 0
mov byte [edi - 4], 0
lea esi, [esp + 0x368]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push 0
lea edx, [eax + ecx + 0x1c]
push edx
lea eax, [ebx + 0x1598]
push eax
jmp 0x4394dd
mov esi, dword [esp + 0x1c]
lea eax, [esi + 8]
cdq
mov cl, 8
mov byte [ebx + 0x159b], al
call fcn.00496e10
mov cl, 8
mov byte [ebx + 0x159a], al
call fcn.00496e10
mov cl, 8
mov byte [ebx + 0x1599], al
call fcn.00496e10
mov byte [ebx + 0x1598], al
mov ecx, esi
lea edi, [ebx + 0x15a0]
mov dword [esp + 0x30], edx
mov edx, ecx
shr ecx, 2
mov byte [edi - 1], 0
mov byte [edi - 2], 0
mov byte [edi - 3], 0
mov byte [edi - 4], 0
lea esi, [esp + 0x368]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
mov eax, edx
push 0
add eax, 8
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x1598]
push eax
push ecx
mov eax, dword [ebx + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, 0x64
mov dword [ebx + 0x1b98], 0
dec esi
push 0x64
mov ecx, ebx
mov dword [esp + 0x10], esi
call fcn.00435430
cmp eax, 0x42b
je 0x439881
mov eax, dword [ebx + 0x1b98]
mov edx, 4
cmp eax, edx
jl 0x43955f
xor eax, eax
lea esi, [ebx + 0x1598]
xor ecx, ecx
mov dword [esp + 0x2c], edx
lea esp, [esp]
shld ecx, eax, 8
shl eax, 8
mov edi, eax
movzx eax, byte [esi]
cdq
or ecx, edx
mov edx, dword [esp + 0x2c]
or edi, eax
inc esi
dec edx
mov eax, edi
mov dword [esp + 0x2c], edx
jne 0x439530
cmp dword [ebx + 0x1b98], eax
jge 0x4395e6
mov esi, dword [esp + 0xc]
test esi, esi
jg 0x4394f6
mov ecx, dword [esp + 0x20]
call fcn.0045e270
xor edi, edi
push 1
mov ecx, ebx
mov dword [ebx + 0x1bb4], edi
mov dword [ebx + 0x1bb0], edi
call fcn.00435510
mov ecx, dword [ebp + 0x10]
mov esi, eax
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x2cc]
push edx
push esi
mov word [esp + 0x2d6], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4397e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x439739
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x2d8]
mov byte [esp + 0xf7c], 1
call fcn.0041a980
jmp 0x439d5b
mov eax, dword [ebx + 0x1bb8]
test eax, eax
lea esi, [ebx + 0x15a0]
je 0x439637
push 0xa
lea edi, [ebx + 0x1be4]
push esi
mov ecx, edi
call fcn.0047ce70
mov edx, dword [ebx + 0x1b98]
add edx, 0xfffffff6
mov eax, edx
push eax
lea ecx, [ebx + 0x15aa]
push ecx
push esi
mov dword [ebx + 0x1b98], edx
call dword [sym.imp.MSVCR71.dll_memmove]
mov edx, dword [ebx + 0x1b98]
add esp, 0xc
sub edx, 8
push edx
mov ecx, edi
jmp 0x439647
mov eax, dword [ebx + 0x1b98]
sub eax, 8
push eax
lea ecx, [ebx + 0x14cc]
push esi
call fcn.0047cff0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
push ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xc0]
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [ebx + 0x1b98]
push eax
push ecx
sub edx, 8
push edx
push esi
mov ecx, ebx
call fcn.00435780
test eax, eax
je 0x439563
mov eax, dword [esp + 0x18]
push eax
mov dword [ebx + 0x1bb4], 1
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
call fcn.0045e270
lea ecx, [esp + 0x2d8]
mov byte [esp + 0xf7c], 1
call fcn.0041a980
jmp 0x439ec5
push 0xa
mov ecx, ebx
mov dword [esp + 0x10], 0x1f3
call fcn.00435430
cmp eax, 0x42b
je 0x439881
jmp 0x439760
mov eax, 1
mov dword [esp + 0x1c0], eax
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x1c8]
push edx
push edi
lea eax, [esi + 1]
push eax
mov dword [esp + 0x1d8], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], 0x2710
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
jle 0x43985e
lea eax, [esp + 0xb8]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x43989a
lea ecx, [esp + 0x1c0]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x439864
cmp esi, 0xffffffff
jne 0x43995c
push 1
mov ecx, ebx
call fcn.00435510
mov esi, eax
push 0x50
mov dword [esp + 0x1c], esi
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x2cc]
push edx
push esi
mov word [esp + 0x2d6], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x43995c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4398a6
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x318]
mov byte [esp + 0xf7c], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0xf7c], 3
jmp 0x439d39
cmp dword [esp + 0xc], edi
jle 0x43989a
mov eax, dword [esp + 0xc]
dec eax
push 0xa
mov ecx, ebx
mov dword [esp + 0x10], eax
call fcn.00435430
cmp eax, 0x42b
jne 0x439760
lea ecx, [esp + 0x2d8]
mov byte [esp + 0xf7c], 1
call fcn.0041a980
jmp 0x439d5b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4397ef
push 0xa
mov ecx, ebx
mov dword [esp + 0x10], 0x1f3
call fcn.00435430
cmp eax, 0x42b
je 0x439a26
lea edi, [esi + 1]
jmp 0x4398d0
mov eax, 1
mov dword [esp + 0x1c0], eax
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x1c8]
push edx
push 0
push edi
mov dword [esp + 0x1d8], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0x2710
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x439a01
lea eax, [esp + 0xb8]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x439a48
lea ecx, [esp + 0x1c0]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x439a09
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
cmp word [esp + 0x2ca], ax
jne 0x439b56
xor eax, eax
lea edx, [ebx + 0x1598]
mov ecx, 0x180
mov edi, edx
mov dword [ebx + 0x1bb0], 1
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1bb8]
test eax, eax
je 0x439a9a
lea eax, [ebx + 0x1bbc]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov ax, word [eax + 8]
mov dword [edx + 4], ecx
mov word [edx + 8], ax
mov edx, dword [str.GET__QUERY]
lea ecx, [ebx + 0x15a2]
mov dword [ecx], edx
mov eax, dword [0x4a646c]
mov dword [ecx + 4], eax
mov dx, word [0x4a6470]
mov word [ecx + 8], dx
mov al, byte [0x4a6472]
mov byte [ecx + 0xa], al
push 0x14
lea ecx, [ebx + 0x15a2]
push ecx
lea ecx, [ebx + 0x1bc8]
mov dword [esp + 0x14], 0xa
call fcn.0047cfa0
jmp 0x439abd
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x439a71
mov eax, dword [esp + 0xc]
dec eax
push 0xa
mov ecx, ebx
mov dword [esp + 0x10], eax
call fcn.00435430
cmp eax, 0x42b
jne 0x4398d0
lea ecx, [esp + 0x318]
mov byte [esp + 0xf7c], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0xf7c], 5
jmp 0x439d39
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x318]
mov byte [esp + 0xf7c], 8
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0xf7c], 7
jmp 0x439d39
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x318]
mov byte [esp + 0xf7c], 0xa
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0xf7c], 9
jmp 0x439d39
mov eax, dword [str.GET__QUERY]
mov dword [edx], eax
mov ecx, dword [0x4a646c]
mov dword [edx + 4], ecx
mov ax, word [0x4a6470]
mov word [edx + 8], ax
mov cl, byte [0x4a6472]
mov byte [edx + 0xa], cl
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
lea eax, [edi + 8]
cdq
mov cl, 8
mov byte [ebx + esi + 0x15af], al
call fcn.00496e10
mov cl, 8
mov byte [ebx + esi + 0x15ae], al
call fcn.00496e10
mov cl, 8
mov byte [ebx + esi + 0x15ad], al
call fcn.00496e10
mov byte [ebx + esi + 0x15ac], al
lea eax, [ebx + esi + 0x15b4]
mov ecx, edi
mov dword [esp + 0x30], edx
mov edx, ecx
shr ecx, 2
mov byte [eax - 1], 0
mov byte [eax - 2], 0
mov byte [eax - 3], 0
mov byte [eax - 4], 0
mov edi, eax
mov eax, dword [esp + 0xc]
lea esi, [esp + 0x368]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
mov ecx, edx
lea edx, [eax + ecx + 0x1c]
push edx
lea eax, [ebx + 0x1598]
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [esp + 0x18]
jmp 0x439beb
mov edi, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x36c]
push ecx
lea edx, [esp + 0x378]
push edx
mov dword [ebx + 0x1bb0], 0
call dword [sym.imp.MSVCR71.dll_memmove]
add edi, 8
mov eax, edi
cdq
add esp, 0xc
mov cl, 8
mov byte [esp + 0x36b], al
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x36a], al
call fcn.00496e10
mov cl, 8
mov byte [esp + 0x369], al
call fcn.00496e10
push 0
mov byte [esp + 0x36c], al
push edi
lea eax, [esp + 0x370]
push eax
push esi
mov dword [esp + 0x40], edx
mov byte [esp + 0x37f], 0
mov byte [esp + 0x37e], 0
mov byte [esp + 0x37d], 0
mov byte [esp + 0x37c], 0
call dword [sym.imp.WS2_32.dll_send]
mov ecx, 0x180
xor eax, eax
lea edi, [esp + 0x968]
mov dword [esp + 0x34], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc], 0x320
nop
mov eax, dword [esp + 0xc]
dec eax
push 0xa
mov ecx, ebx
mov dword [esp + 0x10], eax
call fcn.00435430
cmp eax, 0x42b
je 0x439d96
push 0
mov ecx, 0x5fc
sub ecx, edi
push ecx
lea edx, [esp + edi + 0x970]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov dword [esp + 0x3c], eax
jle 0x439cfa
add edi, eax
lea eax, [esp + 0x968]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x34], edi
xor ecx, ecx
mov dword [esp + 0x20], 4
nop
mov edx, dword [esp + 0x2c]
shld ecx, eax, 8
shl eax, 8
mov edi, eax
movzx eax, byte [edx]
cdq
or edi, eax
or ecx, edx
mov edx, dword [esp + 0x20]
mov eax, edi
mov edi, dword [esp + 0x2c]
inc edi
dec edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edx
jne 0x439c70
mov edi, dword [esp + 0x34]
cmp edi, eax
jl 0x439d09
mov eax, dword [ebx + 0x1bb8]
test eax, eax
je 0x439db5
push 0xa
lea eax, [esp + 0x974]
lea ecx, [ebx + 0x1be4]
push eax
call fcn.0047ce70
sub edi, 0xa
push edi
lea ecx, [esp + 0x97e]
push ecx
lea edx, [esp + 0x978]
push edx
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
add edi, 0xfffffff8
push edi
lea eax, [esp + 0x974]
push eax
lea ecx, [ebx + 0x1be4]
jmp 0x439dc7
jge 0x439d09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x439d15
mov eax, dword [esp + 0xc]
test eax, eax
jg 0x439c10
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x318]
mov byte [esp + 0xf7c], 0x10
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0xf7c], 0xf
lea ecx, [esp + 0x2fc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2dc]
mov byte [esp + 0xf7c], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
mov ecx, dword [esp + 0xf74]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xf6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496ace
mov esp, ebp
pop ebp
ret 0x70
lea ecx, [esp + 0x318]
mov byte [esp + 0xf7c], 0xc
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0xf7c], 0xb
jmp 0x439d39
add edi, 0xfffffff8
lea ecx, [esp + 0x970]
push edi
push ecx
lea ecx, [ebx + 0x14cc]
call fcn.0047cff0
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x98]
push eax
push ecx
push edx
push edi
lea eax, [esp + 0x9cc]
push eax
mov ecx, ebx
call fcn.00435780
test eax, eax
je 0x439d15
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x318]
mov byte [esp + 0xf7c], 0xe
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2fc]
mov byte [esp + 0xf7c], 0xd
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2dc]
mov byte [esp + 0xf7c], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
jmp 0x439d71