Function at 0x440240
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4a7093
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xef0
mov eax, dword [0x4cbba0]
mov edx, dword [esp + 0xf1c]
xor eax, esp
push ebx
mov ebx, dword [esp + 0xf18]
push ebp
mov dword [esp + 0xef4], eax
mov eax, dword [esp + 0xf08]
push esi
mov esi, dword [esp + 0xf14]
mov ebp, ecx
mov ecx, dword [esp + 0xf24]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
call dword [sym.imp.MSVCR71.dll_rand]
mov edx, eax
xor eax, eax
mov ecx, 0x180
lea edi, [esp + 0x2fc]
rep stosd dword es:[edi], eax
mov byte [esp + 0x2fd], al
mov byte [esp + 0x2fc], al
mov byte [esp + 0x30a], al
mov byte [esp + 0x309], al
mov byte [esp + 0x308], al
mov eax, edx
mov dword [esp + 0x38], edx
cdq
mov cl, 8
mov dword [esp + 0x24], 0
mov byte [esp + 0x303], 0x60
mov byte [esp + 0x302], 0x39
mov byte [esp + 0x301], 0x20
mov byte [esp + 0x300], 0x54
mov byte [esp + 0x2ff], 0x34
mov byte [esp + 0x2fe], 8
mov byte [esp + 0x30b], 0x64
mov byte [esp + 0x30f], al
call fcn.004a1b50
mov cl, 8
mov byte [esp + 0x30e], al
call fcn.004a1b50
mov cl, 8
mov byte [esp + 0x30d], al
call fcn.004a1b50
mov byte [esp + 0x30c], al
mov eax, dword [esp + 0xf1c]
mov dword [esp + 0x34], edx
mov ecx, 8
lea edi, [esp + 0x310]
rep movsd dword es:[edi], dword [esi]
cdq
mov cl, 8
mov byte [esp + 0x333], al
call fcn.004a1b50
mov cl, 8
mov byte [esp + 0x332], al
call fcn.004a1b50
mov cl, 8
mov byte [esp + 0x331], al
call fcn.004a1b50
mov byte [esp + 0x330], al
mov eax, dword [esp + 0xf20]
mov dword [esp + 0x34], edx
cdq
mov cl, 8
mov byte [esp + 0x337], al
call fcn.004a1b50
mov cl, 8
mov byte [esp + 0x336], al
call fcn.004a1b50
mov cl, 8
mov byte [esp + 0x335], al
call fcn.004a1b50
test ebx, ebx
mov dword [esp + 0x34], edx
mov byte [esp + 0x334], al
je 0x44040e
lea edx, [esp + 0x338]
mov eax, ebx
sub edx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4403f0
lea ecx, [ebx + 1]
lea ecx, [ecx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x440400
sub ebx, ecx
lea esi, [ebx + 0x3d]
jmp 0x440413
mov esi, 0x3d
lea eax, [esi - 0xc]
push eax
lea ecx, [esp + 0x30c]
push ecx
lea ecx, [ebp + 0x10c8]
mov dword [esp + 0x28], esi
call fcn.00402fa0
cdq
mov cl, 8
mov byte [esp + 0x307], al
call fcn.004a1b50
mov cl, 8
mov byte [esp + 0x306], al
call fcn.004a1b50
mov cl, 8
mov byte [esp + 0x305], al
call fcn.004a1b50
mov byte [esp + 0x304], al
mov eax, dword [ebp + 0x1bb8]
test eax, eax
mov dword [esp + 0x34], edx
push esi
je 0x4404ca
lea edx, [esp + 0x300]
push edx
lea eax, [esp + 0x30e]
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
lea ecx, [ebp + 0x1bbc]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov cx, word [ecx + 8]
add esp, 0xc
mov dword [esp + 0x2fc], edx
push esi
lea edx, [esp + 0x30a]
mov word [esp + 0x308], cx
push edx
lea ecx, [ebp + 0x1bc8]
mov dword [esp + 0x308], eax
call fcn.00487f10
add esi, 0xa
mov dword [esp + 0x20], esi
jmp 0x4404dd
lea eax, [esp + 0x300]
push eax
lea ecx, [ebp + 0x14cc]
call fcn.00487f10
push 2
mov ecx, ebp
call fcn.0043ef50
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x4417b6
mov edx, dword [esp + 0xf14]
xor ecx, ecx
mov dword [esp + 0x26c], ecx
mov dword [esp + 0x270], ecx
mov dword [esp + 0x274], ecx
push edx
mov dword [esp + 0x27c], ecx
mov word [esp + 0x270], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x28]
push esi
mov word [esp + 0x272], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x270], eax
jne 0x440567
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x44063a
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x270], edx
mov eax, 5
lea esp, [esp]
mov ecx, dword [esp + 0x20]
dec eax
push 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x270]
push eax
mov eax, dword [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x30c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, 0x14
mov edi, edi
push 0x64
mov ecx, ebp
dec edi
call fcn.0043ee60
cmp eax, 0x42b
je 0x440746
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2f0]
push edx
push 0
push 0x5fc
lea eax, [esp + 0x90c]
push eax
push ecx
mov dword [esp + 0x5c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0x1e
jl 0x440688
mov eax, dword [ebp + 0x1bb8]
test eax, eax
je 0x440648
push 0xa
lea edx, [esp + 0x900]
lea esi, [ebp + 0x1be4]
push edx
mov ecx, esi
call fcn.00487de0
sub ebx, 0xa
push ebx
lea eax, [esp + 0x90a]
push eax
lea ecx, [esp + 0x904]
push ecx
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
push ebx
lea edx, [esp + 0x900]
push edx
mov ecx, esi
jmp 0x440657
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x4418a4
push ebx
lea eax, [esp + 0x900]
push eax
lea ecx, [ebp + 0x14cc]
call fcn.00487f40
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
push ebx
lea edx, [esp + 0x910]
push edx
mov ecx, ebp
call fcn.0043f020
test eax, eax
jne 0x440758
test edi, edi
jg 0x4405a0
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x440570
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xf08], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x27c]
mov byte [esp + 0xf08], 1
call fcn.00421d90
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0xf20], 2
mov dword [esp + 0x74], 0x10
call fcn.004474c0
mov eax, dword [ebp + 0x14e8]
add esp, 0x18
cmp eax, esi
jge 0x44079c
cmp dword [esp + 0x60], esi
je 0x440768
lea ecx, [esp + 0x14]
mov dword [ebp + 0x14e8], esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [ebp + 0x14ec]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x440730
mov edx, dword [esp + 0x58]
mov dword [ebp + 0x1524], edx
jmp 0x44079c
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x4418a4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4418a0
cmp dword [esp + 0x48], esi
je 0x44079c
lea ecx, [esp + 0x10]
mov dword [ebp + 0x14e8], 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [ebp + 0x14ec]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x440788
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x1524], eax
lea eax, [ebp + 0x14ec]
push eax
lea ecx, [esp + 0x284]
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 [ebp + 0x1524]
lea eax, [ebp + 0x1528]
mov word [esp + 0x29c], cx
push eax
lea ecx, [esp + 0x2a4]
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, [ebp + 0x1560]
push eax
lea ecx, [esp + 0x2c0]
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 + 0x1c]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x2e0]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [esp + 0x2de]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp dword [ebp + 0x14e8], esi
movzx eax, ax
jne 0x440d3e
push eax
xor edi, edi
lea esi, [ebp + 4]
push edi
lea eax, [esp + 0x284]
push eax
mov ecx, esi
mov dword [ebp + 0x1bac], edi
mov dword [esp + 0x3c], esi
call fcn.00469d60
mov dword [ebp + 0x1bac], edi
mov edi, 0x64
push 0x64
mov ecx, ebp
dec edi
call fcn.0043ee60
cmp eax, 0x42b
je 0x4409b6
mov eax, dword [ebp + 0x1bac]
test eax, eax
jne 0x44086a
test edi, edi
jg 0x440847
cmp dword [ebp + 0x1bac], 1
jne 0x440a39
mov dword [esp + 0x18], 2
nop
mov edx, dword [esp + 0x270]
mov cx, word [esp + 0x26e]
mov eax, dword [esp + 0x18]
mov word [ebp + 0x15a0], cx
mov dword [ebp + 0x159c], edx
mov edx, dword [esp + 0x20]
dec eax
mov ecx, edx
mov ebx, ecx
shr ecx, 2
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x1598]
mov byte [eax], 0
mov byte [ebp + 0x1599], 0
mov byte [ebp + 0x159a], 0
mov byte [ebp + 0x159b], 1
lea esi, [esp + 0x2fc]
lea edi, [ebp + 0x15a2]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0x10
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0x1b9c]
push ecx
push 0
lea ecx, [edx + 0xa]
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esp + 0x28], 0x14
mov dword [ebp + 0x1b98], 0
mov esi, dword [esp + 0x28]
dec esi
push 0x64
mov ecx, ebp
mov dword [esp + 0x2c], esi
call fcn.0043ee60
cmp eax, 0x42b
je 0x440b32
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2f0]
push ecx
push 0
push 0x5fc
lea edx, [esp + 0x90c]
push edx
push eax
mov dword [esp + 0x5c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0x28
jl 0x440a1d
mov eax, dword [ebp + 0x1bb8]
test eax, eax
je 0x4409da
push 0xa
lea ecx, [esp + 0x90a]
lea edi, [ebp + 0x1be4]
push ecx
mov ecx, edi
call fcn.00487de0
sub ebx, 0xa
push ebx
lea edx, [esp + 0x914]
push edx
lea eax, [esp + 0x90e]
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
lea esi, [ebx - 0xa]
lea ecx, [esp + 0x906]
push esi
push ecx
mov ecx, edi
jmp 0x4409ec
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x27c]
mov byte [esp + 0xf08], 1
call fcn.004213d0
jmp 0x4417a2
lea esi, [ebx - 0xa]
push esi
lea edx, [esp + 0x90a]
push edx
lea ecx, [ebp + 0x14cc]
call fcn.00487f40
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push esi
lea ecx, [esp + 0x91a]
push ecx
mov ecx, ebp
call fcn.0043f020
test eax, eax
jne 0x440b3c
mov eax, dword [esp + 0x28]
test eax, eax
jg 0x440911
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x440880
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00469d30
xor edi, edi
push 2
mov ecx, esi
mov dword [ebp + 0x1bac], edi
call fcn.0046a300
mov ecx, dword [esp + 0x270]
push 0x50
push ecx
mov dword [ebp + 0x1b98], edi
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
lea edx, [esp + 0x284]
push edx
mov ecx, esi
call fcn.00469d60
mov edi, 0x64
lea esp, [esp]
push 0x64
mov ecx, ebp
dec edi
call fcn.0043ee60
cmp eax, 0x42b
je 0x440b56
mov eax, dword [ebp + 0x1bac]
test eax, eax
jne 0x440aa3
test edi, edi
jg 0x440a80
cmp dword [ebp + 0x1bac], 1
jne 0x440d35
xor eax, eax
lea edx, [ebp + 0x1598]
mov ecx, 0x180
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1bb8]
test eax, eax
je 0x440b60
lea ecx, [ebp + 0x1bbc]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov cx, word [ecx + 8]
mov dword [edx + 4], eax
mov word [edx + 8], cx
mov eax, dword [str.GET__REGISTER]
lea edx, [ebp + 0x15a2]
mov dword [edx], eax
mov ecx, dword [0x4b37d8]
mov dword [edx + 4], ecx
mov eax, dword [0x4b37dc]
mov dword [edx + 8], eax
mov cx, word [0x4b37e0]
mov word [edx + 0xc], cx
push 0x14
lea edx, [ebp + 0x15a2]
push edx
lea ecx, [ebp + 0x1bc8]
mov dword [esp + 0x20], 0xa
call fcn.00487f10
jmp 0x440b83
mov edx, dword [esp + 0x1c]
push edx
jmp 0x4409bb
mov eax, dword [esp + 0x1c]
push eax
mov dword [ebp + 0x1bb4], 1
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x440f5c
mov eax, dword [esp + 0x1c]
push eax
jmp 0x4409bb
mov eax, dword [str.GET__REGISTER]
mov dword [edx], eax
mov ecx, dword [0x4b37d8]
mov dword [edx + 4], ecx
mov eax, dword [0x4b37dc]
mov dword [edx + 8], eax
mov cx, word [0x4b37e0]
mov word [edx + 0xc], cx
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
lea eax, [esi + 8]
cdq
mov cl, 8
mov byte [edi + ebp + 0x15af], al
call fcn.004a1b50
mov cl, 8
mov byte [edi + ebp + 0x15ae], al
call fcn.004a1b50
mov cl, 8
mov byte [edi + ebp + 0x15ad], al
call fcn.004a1b50
mov byte [edi + ebp + 0x15ac], al
mov eax, dword [esp + 0x18]
mov ecx, esi
lea edi, [edi + ebp + 0x15b4]
mov dword [esp + 0x2c], 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 + 0x2fc]
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, [ebp + 0x1598]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, 0x64
mov dword [ebp + 0x1b98], 0
nop
dec eax
push 0x64
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.0043ee60
cmp eax, 0x42b
je 0x4409b6
mov eax, dword [ebp + 0x1b98]
mov edx, 4
cmp eax, edx
jl 0x440d25
xor eax, eax
lea esi, [ebp + 0x1598]
xor ecx, ecx
mov dword [esp + 0x28], edx
lea ebx, [ebx]
shld ecx, eax, 8
shl eax, 8
mov edi, eax
movzx eax, byte [esi]
cdq
or ecx, edx
mov edx, dword [esp + 0x28]
or edi, eax
inc esi
dec edx
mov eax, edi
mov dword [esp + 0x28], edx
jne 0x440c60
mov ecx, dword [ebp + 0x1b98]
cmp ecx, eax
jl 0x440d25
mov eax, dword [ebp + 0x1bb8]
test eax, eax
je 0x440cdb
push 0xa
lea ecx, [esp + 0x908]
lea esi, [ebp + 0x1be4]
push ecx
mov ecx, esi
call fcn.00487de0
sub ebx, 0xa
push ebx
lea edx, [esp + 0x912]
push edx
lea eax, [esp + 0x90c]
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
lea ecx, [ebx - 8]
push ecx
lea edx, [esp + 0x908]
push edx
mov ecx, esi
jmp 0x440cec
add ecx, 0xfffffff8
push ecx
lea eax, [ebp + 0x15a0]
push eax
lea ecx, [ebp + 0x14cc]
call fcn.00487f40
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [ebp + 0x1b98]
lea eax, [esp + 0x2c]
push eax
push ecx
sub edx, 8
push edx
lea eax, [ebp + 0x15a0]
push eax
mov ecx, ebp
call fcn.0043f020
test eax, eax
jne 0x440f4b
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x440c20
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00469d30
xor esi, esi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [esp + 0x48], esi
je 0x440dcf
lea ecx, [esp + 0x10]
mov dword [ebp + 0x14e8], 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [ebp + 0x14ec]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x440d70
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x1524], eax
lea eax, [ebp + 0x14ec]
push eax
lea ecx, [esp + 0x284]
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 [ebp + 0x1524]
lea eax, [ebp + 0x1528]
mov word [esp + 0x29c], cx
push eax
lea ecx, [esp + 0x2a4]
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, [ebp + 0x1560]
push eax
lea ecx, [esp + 0x2c0]
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 [ebp + 0x14e8], 1
jne 0x441118
mov eax, dword [esp + 0x26e]
lea edx, [esp + 0x27c]
push edx
xor ebx, ebx
lea edi, [ebp + 0x5c]
push eax
mov dword [ebp + 0x1bb0], ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esp + 0x274]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
movzx ecx, ax
push ecx
push edx
call esi
push eax
mov ecx, edi
call fcn.0046a3e0
mov dword [ebp + 0x1bac], ebx
mov ebx, 0x64
push 0x64
mov ecx, ebp
dec ebx
call fcn.0043ee60
cmp eax, 0x42b
je 0x44117a
mov eax, dword [ebp + 0x1bac]
test eax, eax
jne 0x440e4b
test ebx, ebx
jg 0x440e28
cmp dword [ebp + 0x1bac], 1
je 0x440ec0
mov ecx, edi
mov dword [ebp + 0x1bb0], 1
call fcn.0046a540
mov ecx, dword [esp + 0x270]
lea eax, [esp + 0x27c]
push eax
push 0x50
push ecx
call esi
push eax
mov ecx, edi
call fcn.0046a3e0
mov dword [ebp + 0x1bac], 0
mov edi, 0x64
push 0x64
mov ecx, ebp
dec edi
call fcn.0043ee60
cmp eax, 0x42b
je 0x44117a
mov eax, dword [ebp + 0x1bac]
test eax, eax
jne 0x440eb3
test edi, edi
jg 0x440e90
cmp dword [ebp + 0x1bac], 1
jne 0x44110d
mov eax, dword [ebp + 0x1bb0]
test eax, eax
je 0x441022
lea edx, [ebp + 0x1598]
xor eax, eax
mov ecx, 0x180
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1bb8]
xor ebx, ebx
test eax, eax
je 0x440f7e
lea eax, [ebp + 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__REGISTER]
lea ecx, [ebp + 0x15a2]
mov dword [ecx], edx
mov eax, dword [0x4b37d8]
mov dword [ecx + 4], eax
mov edx, dword [0x4b37dc]
mov dword [ecx + 8], edx
mov ax, word [0x4b37e0]
mov word [ecx + 0xc], ax
push 0x14
lea ecx, [ebp + 0x15a2]
push ecx
lea ecx, [ebp + 0x1bc8]
mov ebx, 0xa
call fcn.00487f10
jmp 0x440fa1
mov eax, 1
mov dword [ebp + 0x1bb4], eax
mov dword [ebp + 0x1bb0], eax
mov ecx, dword [esp + 0x30]
call fcn.00469d30
lea ecx, [esp + 0x27c]
mov byte [esp + 0xf08], 1
call fcn.004213d0
jmp 0x44188c
mov eax, dword [str.GET__REGISTER]
mov dword [edx], eax
mov ecx, dword [0x4b37d8]
mov dword [edx + 4], ecx
mov eax, dword [0x4b37dc]
mov dword [edx + 8], eax
mov cx, word [0x4b37e0]
mov word [edx + 0xc], cx
mov esi, dword [esp + 0x20]
lea eax, [esi + 8]
cdq
mov cl, 8
mov byte [ebx + ebp + 0x15af], al
call fcn.004a1b50
mov cl, 8
mov byte [ebx + ebp + 0x15ae], al
call fcn.004a1b50
mov cl, 8
mov byte [ebx + ebp + 0x15ad], al
call fcn.004a1b50
mov byte [ebx + ebp + 0x15ac], al
mov ecx, esi
lea edi, [ebx + ebp + 0x15b4]
mov dword [esp + 0x34], 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 + 0x2fc]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
mov eax, edx
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x60]
push 0
lea ecx, [ebx + eax + 0x1c]
push ecx
lea eax, [ebp + 0x1598]
push eax
push edx
jmp 0x441098
mov esi, dword [esp + 0x20]
lea ebx, [esi + 8]
mov eax, ebx
cdq
mov cl, 8
mov byte [ebp + 0x159b], al
call fcn.004a1b50
mov cl, 8
mov byte [ebp + 0x159a], al
call fcn.004a1b50
mov cl, 8
mov byte [ebp + 0x1599], al
call fcn.004a1b50
mov byte [ebp + 0x1598], al
mov ecx, esi
mov eax, ecx
lea edi, [ebp + 0x15a0]
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 + 0x2fc]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push ebx
lea eax, [ebp + 0x1598]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x60]
push eax
mov dword [esp + 0x40], edx
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov esi, 0x64
mov dword [ebp + 0x1b98], 0
lea ecx, [ecx]
dec esi
push 0x64
mov ecx, ebp
mov dword [esp + 0x1c], esi
call fcn.0043ee60
cmp eax, 0x42b
je 0x44117a
mov eax, dword [ebp + 0x1b98]
mov edi, 4
cmp eax, edi
jl 0x441109
xor eax, eax
lea esi, [ebp + 0x1598]
xor ecx, ecx
shld ecx, eax, 8
shl eax, 8
mov ebx, eax
movzx eax, byte [esi]
cdq
or ebx, eax
or ecx, edx
inc esi
dec edi
mov eax, ebx
jne 0x4410e2
cmp dword [ebp + 0x1b98], eax
jge 0x441181
mov esi, dword [esp + 0x18]
test esi, esi
jg 0x4410b0
mov ecx, dword [esp + 0x28]
call fcn.0046a540
xor esi, esi
push 1
mov ecx, ebp
mov dword [ebp + 0x1bb4], esi
mov dword [ebp + 0x1bb0], esi
call fcn.0043ef50
push 0x10
lea ecx, [esp + 0x270]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4412f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x441263
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x27c]
mov byte [esp + 0xf08], 1
call fcn.004213d0
jmp 0x44188c
push 0
jmp 0x4409bb
mov eax, dword [ebp + 0x1bb8]
test eax, eax
lea esi, [ebp + 0x15a0]
je 0x4411d2
push 0xa
lea edi, [ebp + 0x1be4]
push esi
mov ecx, edi
call fcn.00487de0
mov ebx, dword [ebp + 0x1b98]
add ebx, 0xfffffff6
mov eax, ebx
push eax
lea edx, [ebp + 0x15aa]
push edx
push esi
mov dword [ebp + 0x1b98], ebx
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [ebp + 0x1b98]
add esp, 0xc
sub eax, 8
push eax
mov ecx, edi
jmp 0x4411e2
mov ecx, dword [ebp + 0x1b98]
sub ecx, 8
push ecx
lea ecx, [ebp + 0x14cc]
push esi
call fcn.00487f40
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [ebp + 0x1b98]
lea ecx, [esp + 0x2c]
push ecx
push edx
sub eax, 8
push eax
push esi
mov ecx, ebp
call fcn.0043f020
test eax, eax
je 0x44110d
push 0
mov dword [ebp + 0x1bb4], 1
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x28]
call fcn.0046a540
lea ecx, [esp + 0x27c]
mov byte [esp + 0xf08], 1
call fcn.004213d0
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 0x4418a4
push 0x64
mov ecx, ebp
mov esi, 0x31
call fcn.0043ee60
cmp eax, 0x42b
je 0x441384
lea edi, [ebx + 1]
nop
mov eax, 1
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x16c], eax
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x6c]
push ecx
push 0
push edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x180], ebx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x2710
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x44136b
lea edx, [esp + 0x168]
push edx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x44138a
lea eax, [esp + 0x64]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x44136f
cmp ebx, 0xffffffff
jne 0x441429
push 1
mov ecx, ebp
call fcn.0043ef50
push 0x50
mov ebx, eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [esp + 0x270]
push ecx
push ebx
mov word [esp + 0x27a], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x441429
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x441396
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x2bc]
mov byte [esp + 0xf08], 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 + 0xf08], 3
jmp 0x441780
test esi, esi
jle 0x44138a
push 0x64
mov ecx, ebp
dec esi
call fcn.0043ee60
cmp eax, 0x42b
jne 0x441280
push ebx
jmp 0x4409bb
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x441300
push 0x64
mov ecx, ebp
mov esi, 0x31
call fcn.0043ee60
cmp eax, 0x42b
je 0x4414e7
lea edi, [ebx + 1]
mov eax, 1
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x16c], eax
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x6c]
push ecx
push 0
push edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x180], ebx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x2710
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4414ce
lea edx, [esp + 0x168]
push edx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x441510
lea eax, [esp + 0x64]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4414d2
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
cmp word [esp + 0x26e], ax
jne 0x44160d
xor eax, eax
lea edx, [ebp + 0x1598]
mov ecx, 0x180
mov edi, edx
mov dword [ebp + 0x1bb0], 1
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1bb8]
test eax, eax
je 0x441562
lea ecx, [ebp + 0x1bbc]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov cx, word [ecx + 8]
mov dword [edx + 4], eax
mov word [edx + 8], cx
mov eax, dword [str.GET__REGISTER]
lea edx, [ebp + 0x15a2]
mov dword [edx], eax
mov ecx, dword [0x4b37d8]
mov dword [edx + 4], ecx
mov eax, dword [0x4b37dc]
mov dword [edx + 8], eax
mov cx, word [0x4b37e0]
mov word [edx + 0xc], cx
push 0x14
lea edx, [ebp + 0x15a2]
push edx
lea ecx, [ebp + 0x1bc8]
mov dword [esp + 0x20], 0xa
call fcn.00487f10
jmp 0x441585
test esi, esi
jle 0x441539
push 0x64
mov ecx, ebp
dec esi
call fcn.0043ee60
cmp eax, 0x42b
jne 0x4413b2
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x2bc]
mov byte [esp + 0xf08], 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 + 0xf08], 5
jmp 0x441780
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x2bc]
mov byte [esp + 0xf08], 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 + 0xf08], 7
jmp 0x441780
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x2bc]
mov byte [esp + 0xf08], 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 + 0xf08], 9
jmp 0x441780
mov eax, dword [str.GET__REGISTER]
mov dword [edx], eax
mov ecx, dword [0x4b37d8]
mov dword [edx + 4], ecx
mov eax, dword [0x4b37dc]
mov dword [edx + 8], eax
mov cx, word [0x4b37e0]
mov word [edx + 0xc], cx
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
lea eax, [esi + 8]
cdq
mov cl, 8
mov byte [edi + ebp + 0x15af], al
call fcn.004a1b50
mov cl, 8
mov byte [edi + ebp + 0x15ae], al
call fcn.004a1b50
mov cl, 8
mov byte [edi + ebp + 0x15ad], al
call fcn.004a1b50
mov byte [edi + ebp + 0x15ac], al
mov eax, dword [esp + 0x18]
mov ecx, esi
lea edi, [edi + ebp + 0x15b4]
mov dword [esp + 0x2c], 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 + 0x2fc]
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, [ebp + 0x1598]
push eax
jmp 0x44169b
mov edi, dword [esp + 0x20]
push edi
lea eax, [esp + 0x300]
push eax
lea ecx, [esp + 0x30c]
push ecx
mov dword [ebp + 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 + 0x2ff], al
call fcn.004a1b50
mov cl, 8
mov byte [esp + 0x2fe], al
call fcn.004a1b50
mov cl, 8
mov byte [esp + 0x2fd], al
call fcn.004a1b50
push 0
mov dword [esp + 0x30], edx
push edi
lea edx, [esp + 0x304]
mov byte [esp + 0x304], al
mov byte [esp + 0x30b], 0
mov byte [esp + 0x30a], 0
mov byte [esp + 0x309], 0
mov byte [esp + 0x308], 0
push edx
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, 0x50
xor esi, esi
lea esp, [esp]
dec edi
push 0x64
mov ecx, ebp
mov dword [esp + 0x1c], edi
call fcn.0043ee60
cmp eax, 0x42b
je 0x44175c
push 0
mov eax, 0x5fc
sub eax, esi
push eax
lea ecx, [esp + esi + 0x904]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov dword [esp + 0x44], eax
jle 0x44173c
add esi, eax
lea edx, [esp + 0x8fc]
xor eax, eax
mov dword [esp + 0x28], edx
xor ecx, ecx
mov dword [esp + 0x30], 4
shld ecx, eax, 8
shl eax, 8
mov edi, eax
mov eax, dword [esp + 0x28]
movzx eax, byte [eax]
cdq
or edi, eax
or ecx, edx
mov edx, dword [esp + 0x30]
mov eax, edi
mov edi, dword [esp + 0x28]
inc edi
dec edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edx
jne 0x441703
cmp esi, eax
jge 0x4417bd
mov edi, dword [esp + 0x18]
jmp 0x44174f
jge 0x44174f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x441846
test edi, edi
jg 0x4416b0
jmp 0x441846
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x2bc]
mov byte [esp + 0xf08], 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 + 0xf08], 0xb
lea ecx, [esp + 0x2a0]
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 + 0x280]
mov byte [esp + 0xf08], 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
jmp 0x4418a4
mov eax, dword [ebp + 0x1bb8]
test eax, eax
je 0x44180b
push 0xa
lea ecx, [esp + 0x908]
lea edi, [ebp + 0x1be4]
push ecx
mov ecx, edi
call fcn.00487de0
sub esi, 0xa
push esi
lea edx, [esp + 0x912]
push edx
lea eax, [esp + 0x90c]
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
add esi, 0xfffffff8
lea ecx, [esp + 0x904]
push esi
push ecx
mov ecx, edi
jmp 0x44181d
add esi, 0xfffffff8
push esi
lea edx, [esp + 0x908]
push edx
lea ecx, [ebp + 0x14cc]
call fcn.00487f40
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push esi
lea ecx, [esp + 0x918]
push ecx
mov ecx, ebp
call fcn.0043f020
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x2bc]
mov byte [esp + 0xf08], 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 + 0x2a0]
mov byte [esp + 0xf08], 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 + 0x280]
mov byte [esp + 0xf08], 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, dword [esp + 0x24]
mov ecx, dword [esp + 0xf00]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xef0]
pop ebx
xor ecx, esp
call fcn.004a17d1
add esp, 0xefc
ret 0x20