Function at 0x4dd6a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 0x1d1], 6
mov byte [ebp - 0x1a1], 5
mov eax, 2
mov word [ebp - 0x1b8], ax
lea ecx, [ebp - 0x198]
push ecx
movzx edx, word [ebp - 0x1b8]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4dd714
push str.WSAStartup_socket_2.0_failed_
call fcn.0066610b
add esp, 4
mov eax, dword [ebp - 0x26c]
mov dword [eax + 0x54], 0xffffffff
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx + 0x54]
jmp 0x4de601
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1a8], eax
mov edx, 2
mov word [ebp - 0x1d0], dx
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1ce], ax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1cc], eax
push 0x10
lea edx, [ebp - 0x1d0]
push edx
mov eax, dword [ebp - 0x1a8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4dd7b0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.connect_server:__s_port:_d_failed_r_n
call fcn.0066610b
add esp, 0xc
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [ebp - 0x26c]
mov dword [eax + 0x54], 0xffffffff
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx + 0x54]
jmp 0x4de601
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
push 0
push 6
push str.START
mov edx, dword [ebp - 0x1a8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 0x1b0], 0
xor eax, eax
mov dword [ebp - 0x1af], eax
mov word [ebp - 0x1ab], ax
mov byte [ebp - 0x1a9], al
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x19c], 0
cmp dword [ebp - 0x1bc], 6
je 0x4dd839
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c0], eax
jmp 0x4de54c
mov ecx, 1
test ecx, ecx
je 0x4de54c
push 0
mov edx, 8
sub edx, dword [ebp - 0x19c]
push edx
mov eax, dword [ebp - 0x19c]
lea ecx, [ebp + eax - 0x1b0]
push ecx
mov edx, dword [ebp - 0x1a8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jg 0x4dd8a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x26c]
mov dword [eax + 0x54], 0xfffffffe
jmp 0x4de54c
mov ecx, dword [ebp - 0x19c]
add ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x19c], ecx
cmp dword [ebp - 0x19c], 8
jge 0x4dd8c1
jmp 0x4dd839
mov dword [ebp - 0x19c], 0
lea edx, [ebp - 0x1aa]
push edx
call fcn.004a4360
add esp, 4
movzx eax, ax
mov dword [ebp - 0x1d8], eax
cmp dword [ebp - 0x1d8], 0
jg 0x4dd903
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x54], 0xfffffffd
jmp 0x4de54c
cmp dword [ebp - 0x1a0], 0
je 0x4dd931
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x224]
push eax
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1a0], 0
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00576bfc
add esp, 4
mov dword [ebp - 0x228], eax
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x1a0], edx
push 0
mov eax, dword [ebp - 0x1d8]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
mov edx, dword [ebp - 0x1a8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1bc]
cmp eax, dword [ebp - 0x1d8]
je 0x4dd9a6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x54], 0xfffffffc
jmp 0x4de54c
push 0x735a60
lea edx, [ebp - 0x1b0]
push edx
call fcn.0066a2f0
add esp, 8
test eax, eax
jne 0x4dda1c
push str.Recv_ErrorToken_r_n
call fcn.0066610b
add esp, 4
mov eax, dword [ebp - 0x1a0]
add eax, dword [ebp - 0x1d8]
mov byte [eax - 1], 0
mov ecx, dword [ebp - 0x1a0]
push ecx
push 0x7388e8
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x54], 0xfffffffb
jmp 0x4de54c
push str.RESLT
lea eax, [ebp - 0x1b0]
push eax
call fcn.0066a2f0
add esp, 8
test eax, eax
jne 0x4ddce5
mov ecx, dword [ebp - 0x1a0]
push ecx
call fcn.004a43a0
add esp, 4
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x4dda6d
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x54], 0xfffffffa
jmp 0x4de54c
mov eax, dword [ebp - 0x1a0]
add eax, 4
push eax
call fcn.004a43a0
add esp, 4
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0x1d8]
sub ecx, 0xc
cmp dword [ebp - 0x1e4], ecx
jle 0x4ddac3
mov edx, dword [ebp - 0x1d8]
push edx
mov eax, dword [ebp - 0x1e4]
push eax
push str.SnLen:_d_PacketLen:_d_r_n
call fcn.0066610b
add esp, 0xc
push str.Sn_len_over_dirty_data__r_n
call fcn.0066610b
add esp, 4
jmp 0x4ddb4f
mov ecx, dword [ebp - 0x1e4]
add ecx, 1
push ecx
call fcn.00576bfc
add esp, 4
mov dword [ebp - 0x22c], eax
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x1e8], edx
mov eax, dword [ebp - 0x1e4]
push eax
mov ecx, dword [ebp - 0x1a0]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x1e8]
push edx
call fcn.00668860
add esp, 0xc
mov eax, dword [ebp - 0x1e8]
add eax, dword [ebp - 0x1e4]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1e8]
push ecx
push 0x73892c
call fcn.0066610b
add esp, 8
mov edx, dword [ebp - 0x1e8]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
push eax
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1e8], 0
mov ecx, dword [ebp - 0x1e4]
mov edx, dword [ebp - 0x1a0]
lea eax, [edx + ecx + 8]
push eax
call fcn.004a43a0
add esp, 4
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp - 0x1d8]
sub ecx, 0xc
sub ecx, dword [ebp - 0x1e4]
cmp dword [ebp - 0x1dc], ecx
jle 0x4ddbb2
mov edx, dword [ebp - 0x1d8]
push edx
mov eax, dword [ebp - 0x1e4]
push eax
push str.PukLen:_d_PacketLen:_d_r_n
call fcn.0066610b
add esp, 0xc
push str.Puk_len_over_dirty_data__r_n
call fcn.0066610b
add esp, 4
jmp 0x4ddc96
mov ecx, dword [ebp - 0x1dc]
lea edx, [ecx + ecx + 1]
push edx
call fcn.00576bfc
add esp, 4
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 0x1ed], 0
mov dword [ebp - 0x1f4], 0
jmp 0x4ddbf9
mov ecx, dword [ebp - 0x1f4]
add ecx, 1
mov dword [ebp - 0x1f4], ecx
mov edx, dword [ebp - 0x1f4]
cmp edx, dword [ebp - 0x1dc]
jge 0x4ddc4d
mov eax, dword [ebp - 0x1e4]
mov ecx, dword [ebp - 0x1a0]
lea edx, [ecx + eax + 0xc]
mov eax, dword [ebp - 0x1f4]
mov cl, byte [edx + eax]
mov byte [ebp - 0x1ed], cl
movzx edx, byte [ebp - 0x1ed]
push edx
push 0x73896c
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0x1ec]
lea edx, [ecx + eax*2]
push edx
call fcn.0066926d
add esp, 0xc
jmp 0x4ddbea
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [ebp - 0x1ec]
mov byte [ecx + eax*2], 0
mov edx, dword [ebp - 0x1ec]
push edx
push str.pukinfo_s_r_n
call fcn.0066610b
add esp, 8
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1ec], 0
push str.dlmkld100___r_n
call fcn.0066610b
add esp, 4
push str.exit_doneok_r_n
call fcn.0066610b
add esp, 4
push str.NextDevice_r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x54], 0
jmp 0x4de54c
push str.TDATA
lea eax, [ebp - 0x1b0]
push eax
call fcn.0066a2f0
add esp, 8
test eax, eax
jne 0x4de536
call fcn.004e3e10
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x1d8]
imul ecx, ecx, 0x32
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1d8]
push edx
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x208]
add ecx, 4
call fcn.004a22c0
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x1f5], 0
mov dword [ebp - 0x210], 0
mov ecx, 1
test ecx, ecx
je 0x4dde6c
push 0x64
push 0
push 0
push 1
lea edx, [ebp - 0x1f5]
push edx
mov ecx, dword [ebp - 0x208]
add ecx, 4
call fcn.004a2530
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4dde0e
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x210]
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x4dde09
push str.Waiting_for_the_D180_connect__r_n
call fcn.0066610b
add esp, 4
mov ecx, dword [ebp - 0x208]
call fcn.004c2e90
push 0x1c200
mov ecx, dword [ebp - 0x208]
call fcn.004c5c30
mov edx, dword [ebp - 0x1d8]
imul edx, edx, 0x32
push edx
push 0
push 0
mov eax, dword [ebp - 0x1d8]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
mov ecx, dword [ebp - 0x208]
add ecx, 4
call fcn.004a22c0
jmp 0x4ddd51
movsx edx, byte [ebp - 0x1f5]
cmp edx, 6
jne 0x4dde3c
push str.Read_Com_ACK__r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
jmp 0x4dde6c
movsx eax, byte [ebp - 0x1f5]
push eax
push str.ReadCom_ACK_failed_read_:__d_r_n
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
jmp 0x4ddd51
push str._COM_send_and_read_ack_r_n
call fcn.0066610b
add esp, 4
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x200], 0
xor ecx, ecx
mov dword [ebp - 0x1ff], ecx
mov edx, 1
test edx, edx
je 0x4de245
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 4
jne 0x4ddee3
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x54], 0xfffffff9
push str.com_Read_error_over_try_r_n
call fcn.0066610b
add esp, 4
push str.dlmkldfailed_r_n
call fcn.0066610b
add esp, 4
jmp 0x4de245
push 5
push 0
lea edx, [ebp - 0x200]
push edx
call fcn.006665c0
add esp, 0xc
movsx eax, byte [ebp - 0x200]
cmp eax, 2
je 0x4ddf40
push 0x1f4
push 0
push 0
push 1
lea ecx, [ebp - 0x200]
push ecx
mov ecx, dword [ebp - 0x208]
add ecx, 4
call fcn.004a2530
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0x5b4
jne 0x4ddf3e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4ddef6
jmp 0x4ddef6
push 0x1f4
push 0
push 0
push 4
lea edx, [ebp - 0x1ff]
push edx
mov ecx, dword [ebp - 0x208]
add ecx, 4
call fcn.004a2530
movsx eax, byte [ebp - 0x200]
cmp eax, 2
jne 0x4de1f8
movsx ecx, byte [ebp - 0x1ff]
test ecx, ecx
jne 0x4de1f8
mov dword [ebp - 0x1d8], 0
cmp dword [ebp - 0x1a0], 0
je 0x4ddfad
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x23c]
push eax
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1a0], 0
lea ecx, [ebp - 0x1fd]
push ecx
call fcn.004a4360
add esp, 4
movzx edx, ax
mov dword [ebp - 0x1d8], edx
cmp dword [ebp - 0x1d8], 0
jg 0x4ddfdd
jmp 0x4de245
mov eax, dword [ebp - 0x1d8]
push eax
call fcn.00576bfc
add esp, 4
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x1a0], ecx
mov edx, dword [ebp - 0x1d8]
imul edx, edx, 0x32
push edx
push 0
push 0
mov eax, dword [ebp - 0x1d8]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
mov ecx, dword [ebp - 0x208]
add ecx, 4
call fcn.004a2530
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4de090
cmp dword [ebp - 0x1a0], 0
je 0x4de05b
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1a0], 0
mov ecx, dword [ebp - 0x21c]
push ecx
push str.Read_Fail__ERROR:_d_r_n
call fcn.0066610b
add esp, 8
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x54], 0xfffffff8
jmp 0x4de54c
mov byte [ebp - 0x21d], 0
push 0x64
push 0
push 0
push 1
lea eax, [ebp - 0x201]
push eax
mov ecx, dword [ebp - 0x208]
add ecx, 4
call fcn.004a2530
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4de11c
cmp dword [ebp - 0x1a0], 0
je 0x4de0e7
mov ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x248]
push edx
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1a0], 0
mov eax, dword [ebp - 0x21c]
push eax
push str.Read__Serial_Fail__ERROR:_d_r_n
call fcn.0066610b
add esp, 8
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x54], 0xfffffff7
jmp 0x4de54c
push 4
lea edx, [ebp - 0x1ff]
push edx
call fcn.004a4290
add esp, 8
mov byte [ebp - 0x21d], al
mov eax, dword [ebp - 0x1d8]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
call fcn.004a4290
add esp, 8
movzx edx, al
movsx eax, byte [ebp - 0x21d]
xor eax, edx
mov byte [ebp - 0x21d], al
movsx ecx, byte [ebp - 0x21d]
movsx edx, byte [ebp - 0x201]
cmp ecx, edx
jne 0x4de191
push 0x64
push 0
push 0
push 1
lea eax, [ebp - 0x1d1]
push eax
mov ecx, dword [ebp - 0x208]
add ecx, 4
call fcn.004a22c0
jmp 0x4de245
cmp dword [ebp - 0x1a0], 0
je 0x4de1b5
mov ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1a0], 0
push str.LRC_check_Error_r_n
call fcn.0066610b
add esp, 4
push 0x64
push 0
push 0
push 1
lea eax, [ebp - 0x1a1]
push eax
mov ecx, dword [ebp - 0x208]
add ecx, 4
call fcn.004a22c0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4dde92
cmp dword [ebp - 0x1a0], 0
je 0x4de21c
mov ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x250]
push edx
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1a0], 0
push str.ReadSerial_dirty_data_r_n
call fcn.0066610b
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4dde92
push str.DownTask_COM_read_Data_right__r_n
call fcn.0066610b
add esp, 4
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x1d8]
add eax, 0xe
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x1b4], 0
je 0x4de299
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x254], ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1b4], 0
mov eax, dword [ebp - 0x20c]
push eax
call fcn.00576bfc
add esp, 4
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x1b4], ecx
mov dword [ebp - 0x214], 0
push str.TDATA
push 0x738ad0
mov edx, dword [ebp - 0x1b4]
push edx
call fcn.0066926d
add esp, 0xc
mov eax, dword [ebp - 0x214]
add eax, 6
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x20c]
sub ecx, 8
push ecx
mov edx, dword [ebp - 0x1b4]
add edx, dword [ebp - 0x214]
push edx
call fcn.004a4330
add esp, 8
mov eax, dword [ebp - 0x214]
add eax, 2
mov dword [ebp - 0x214], eax
push 5
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp - 0x1b4]
add edx, dword [ebp - 0x214]
push edx
call fcn.00668860
add esp, 0xc
mov eax, dword [ebp - 0x214]
add eax, 5
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x1d8]
push ecx
mov edx, dword [ebp - 0x1a0]
push edx
mov eax, dword [ebp - 0x1b4]
add eax, dword [ebp - 0x214]
push eax
call fcn.00668860
add esp, 0xc
mov ecx, dword [ebp - 0x214]
add ecx, dword [ebp - 0x1d8]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x1b4]
add edx, dword [ebp - 0x214]
mov al, byte [ebp - 0x201]
mov byte [edx], al
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], 0
mov edx, 1
test edx, edx
je 0x4de534
cmp dword [ebp - 0x1a0], 0
je 0x4de3c8
cmp dword [ebp - 0x1d8], 0
jne 0x4de3cd
jmp 0x4de534
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 4
jne 0x4de42a
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x54], 0xfffffff5
cmp dword [ebp - 0x1b4], 0
je 0x4de420
mov edx, dword [ebp - 0x1b4]
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x25c]
push eax
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1b4], 0
jmp 0x4de54c
push 0
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x1a8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0xffffffff
jne 0x4de4fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0x20
jne 0x4de4c3
push str.Peer_Close_Socket___r_n
call fcn.0066610b
add esp, 4
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x54], 0xfffffff4
cmp dword [ebp - 0x1b4], 0
je 0x4de4b7
mov edx, dword [ebp - 0x1b4]
mov dword [ebp - 0x260], edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1b4], 0
jmp 0x4de54c
cmp dword [ebp - 0x1c0], 0x2733
je 0x4de4f8
mov dword [ebp - 0x1b4], 0
mov ecx, dword [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
push str._Socket_Send_Error__ErrorID:_d__iRet:_d_r_n
call fcn.0066610b
add esp, 0xc
jmp 0x4de54c
jmp 0x4de52f
mov eax, dword [ebp - 0x1bc]
cmp eax, dword [ebp - 0x214]
jne 0x4de52f
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
push edx
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1b4], 0
jmp 0x4de534
jmp 0x4de3a9
jmp 0x4de547
push str.recv_wrong_token_head:_s_r_n
call fcn.0066610b
add esp, 4
jmp 0x4de54c
jmp 0x4dd839
cmp dword [ebp - 0x1c0], 0
je 0x4de569
mov eax, dword [ebp - 0x1c0]
push eax
push str.MKLD_comunication_Error_d_r_n
call fcn.0066610b
add esp, 8
mov ecx, dword [ebp - 0x26c]
cmp dword [ecx + 0x54], 0
je 0x4de599
mov edx, dword [ebp - 0x26c]
mov eax, dword [edx + 0x54]
push eax
push str.MKLD_lResult_d_r_n
call fcn.0066610b
add esp, 8
push str.dlmkldFAIL_r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
cmp dword [ebp - 0x1a8], 0
je 0x4de5ca
mov ecx, dword [ebp - 0x1a8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x1a8], 0
cmp dword [ebp - 0x1a0], 0
je 0x4de5f8
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x268]
push eax
call fcn.00576bf1
add esp, 4
mov dword [ebp - 0x1a0], 0
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx + 0x54]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 8