Function at 0x5d7bc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
push esi
push edi
lea edi, [ebp - 0x6c0]
mov ecx, 0x1b0
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x7a3104]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x430
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 0xffffffff
mov al, byte [0x7a5928]
mov byte [ebp - 0x50], al
push 0x2e
push 0
lea ecx, [ebp - 0x4f]
push ecx
call fcn.00515250
add esp, 0xc
lea edx, [ebp - 0xd8]
mov dword [ebp - 0x500], edx
mov eax, dword [ebp - 0x500]
mov dword [ebp - 0x504], eax
mov ecx, dword [ebp - 0x500]
mov dword [ebp - 0x508], ecx
mov dword [ebp - 0x514], 0
mov edx, 4
imul eax, edx, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0x524]
mov dword [ebp - 0x518], edx
mov dword [ebp - 0x520], 0
xor eax, eax
mov word [ebp - 0x528], ax
xor ecx, ecx
mov word [ebp - 0x52c], cx
mov byte [ebp - 0x531], 1
mov dword [ebp - 0x640], 0
mov edx, 4
imul eax, edx, 0xc
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax + 0x524], 0
je 0x5d801e
mov edx, 4
imul eax, edx, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0x524]
push edx
call fcn.00519bbb
add esp, 4
cmp eax, 1
jbe 0x5d801e
mov eax, dword [ebp - 0x518]
push eax
call fcn.00519bbb
add esp, 4
cmp eax, 0x41
jae 0x5d7cf2
mov dword [ebp - 0x6b0], 0x41
jmp 0x5d7d07
mov ecx, dword [ebp - 0x518]
push ecx
call fcn.00519bbb
add esp, 4
mov dword [ebp - 0x6b0], eax
mov edx, dword [ebp - 0x6b0]
mov dword [ebp - 0x644], edx
mov eax, dword [ebp - 0x518]
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x654], 0
mov esi, esp
push 1
mov ecx, dword [ebp - 0x644]
add ecx, 1
push ecx
call dword [0x79403c]
add esp, 8
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
jne 0x5d7d74
mov eax, 0x1b
jmp 0x5d89b9
mov edx, dword [ebp - 0x518]
movsx eax, byte [edx]
cmp eax, 0x5b
jne 0x5d7dd9
mov ecx, dword [ebp - 0x518]
add ecx, 1
mov dword [ebp - 0x648], ecx
push 0x5d
mov edx, dword [ebp - 0x518]
push edx
call fcn.005136b7
add esp, 8
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x5d7dd4
mov eax, dword [ebp - 0x64c]
sub eax, dword [ebp - 0x648]
push eax
mov ecx, dword [ebp - 0x648]
push ecx
mov edx, dword [ebp - 0x640]
push edx
call fcn.005183a1
add esp, 0xc
jmp 0x5d7ea9
mov eax, dword [ebp - 0x518]
movsx ecx, byte [eax]
cmp ecx, 0x3a
jne 0x5d7df8
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x64c], edx
jmp 0x5d7ea9
push 0x3a
mov eax, dword [ebp - 0x518]
push eax
call fcn.005136b7
add esp, 8
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x5d7e93
mov ecx, dword [ebp - 0x508]
push ecx
mov edx, dword [ebp - 0x518]
push edx
push 0x17
call fcn.00513c75
add esp, 0xc
cmp eax, 1
jne 0x5d7e6e
xor eax, eax
mov word [ebp - 0x52c], ax
mov cx, word [ebp - 0x52c]
mov word [ebp - 0x528], cx
mov edx, dword [ebp - 0x518]
push edx
mov eax, dword [ebp - 0x640]
push eax
call fcn.0051685d
add esp, 8
mov dword [ebp - 0x64c], 0
jmp 0x5d7e91
mov ecx, dword [ebp - 0x64c]
sub ecx, dword [ebp - 0x648]
push ecx
mov edx, dword [ebp - 0x518]
push edx
mov eax, dword [ebp - 0x640]
push eax
call fcn.005183a1
add esp, 0xc
jmp 0x5d7ea9
mov ecx, dword [ebp - 0x518]
push ecx
mov edx, dword [ebp - 0x640]
push edx
call fcn.0051685d
add esp, 8
cmp dword [ebp - 0x64c], 0
je 0x5d7f52
push 0x3a
mov eax, dword [ebp - 0x64c]
push eax
call fcn.005136b7
add esp, 8
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0
je 0x5d7f52
push 0xa
push 0
mov ecx, dword [ebp - 0x650]
add ecx, 1
push ecx
call fcn.00516ab5
add esp, 0xc
push eax
call fcn.0051998b
add esp, 4
mov word [ebp - 0x528], ax
push 0x2d
mov edx, dword [ebp - 0x650]
push edx
call fcn.005136b7
add esp, 8
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
je 0x5d7f44
push 0xa
push 0
mov eax, dword [ebp - 0x654]
add eax, 1
push eax
call fcn.00516ab5
add esp, 0xc
push eax
call fcn.0051998b
add esp, 4
mov word [ebp - 0x52c], ax
jmp 0x5d7f52
mov cx, word [ebp - 0x528]
mov word [ebp - 0x52c], cx
movzx edx, word [ebp - 0x528]
movzx eax, word [ebp - 0x52c]
cmp edx, eax
jle 0x5d7f7b
xor ecx, ecx
mov word [ebp - 0x52c], cx
mov dx, word [ebp - 0x52c]
mov word [ebp - 0x528], dx
mov eax, dword [ebp - 0x640]
movsx ecx, byte [eax]
test ecx, ecx
je 0x5d8014
push 0x401
lea edx, [ebp - 0x4f8]
push edx
mov eax, dword [ebp - 0x640]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x50]
mov edx, dword [ecx + 0x18]
push edx
call fcn.00513315
add esp, 4
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x50]
mov edx, dword [ecx + 4]
push edx
call fcn.0051229e
add esp, 0x18
mov dword [ebp - 0x6b4], eax
cmp dword [ebp - 0x6b4], 0
je 0x5d7fee
cmp dword [ebp - 0x6b4], 1
je 0x5d7ffc
cmp dword [ebp - 0x6b4], 2
je 0x5d8006
jmp 0x5d8012
mov eax, dword [ebp - 0x640]
mov dword [ebp - 0x514], eax
jmp 0x5d8012
mov eax, 0x1e
jmp 0x5d89b9
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 0x514], ecx
jmp 0x5d801e
mov dword [ebp - 0x514], 0
cmp dword [ebp - 0x514], 0
jne 0x5d8160
mov dword [ebp - 0xec], 0x80
mov esi, esp
lea edx, [ebp - 0xec]
push edx
mov eax, dword [ebp - 0x500]
push eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x158]
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.00516fe7
test eax, eax
je 0x5d80c2
push 0x100
lea edx, [ebp - 0x638]
push edx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
push eax
call fcn.00514f4e
add esp, 0xc
push eax
push 0x79d7d0
mov eax, dword [ebp + 8]
push eax
call fcn.00518f9a
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 0x640]
push ecx
call dword [0x794030]
add esp, 4
cmp esi, esp
call fcn.00516fe7
mov eax, 0x1e
jmp 0x5d89b9
mov edx, dword [ebp - 0x500]
movzx eax, word [edx]
mov dword [ebp - 0x6b8], eax
cmp dword [ebp - 0x6b8], 0x17
je 0x5d80dc
jmp 0x5d810c
push 0x401
lea ecx, [ebp - 0x4f8]
push ecx
mov edx, dword [ebp - 0x508]
add edx, 8
push edx
mov eax, dword [ebp - 0x500]
movzx ecx, word [eax]
push ecx
call fcn.005130c7
add esp, 0x10
mov dword [ebp - 0x658], eax
jmp 0x5d813a
push 0x401
lea edx, [ebp - 0x4f8]
push edx
mov eax, dword [ebp - 0x504]
add eax, 4
push eax
mov ecx, dword [ebp - 0x500]
movzx edx, word [ecx]
push edx
call fcn.005130c7
add esp, 0x10
mov dword [ebp - 0x658], eax
cmp dword [ebp - 0x658], 0
jne 0x5d814d
mov eax, 0x1e
jmp 0x5d89b9
lea eax, [ebp - 0x4f8]
mov dword [ebp - 0x514], eax
mov byte [ebp - 0x531], 0
lea ecx, [ebp - 0x520]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x514]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00519ae4
add esp, 0x14
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 1
jne 0x5d81a0
lea ecx, [ebp - 0x520]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051a124
add esp, 8
cmp dword [ebp - 0x520], 0
je 0x5d81cc
mov eax, dword [ebp - 0x520]
mov ecx, dword [eax]
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 0x520]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00513ec8
add esp, 8
jmp 0x5d81d6
mov dword [ebp - 0xe0], 0
cmp dword [ebp - 0xe0], 0
jne 0x5d821a
mov ecx, dword [ebp - 0x514]
push ecx
push str.failed_to_resolve_the_address_provided_to_PORT:__s
mov edx, dword [ebp + 8]
push edx
call fcn.00518f9a
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0x640]
push eax
call dword [0x794030]
add esp, 4
cmp esi, esp
call fcn.00516fe7
mov eax, 0x1e
jmp 0x5d89b9
mov esi, esp
mov ecx, dword [ebp - 0x640]
push ecx
call dword [0x794030]
add esp, 4
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 0x514], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x510], 0
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], edx
jmp 0x5d826b
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xe4], ecx
cmp dword [ebp - 0xe4], 0
je 0x5d82b1
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051a651
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5d82ad
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 0x510], eax
jmp 0x5d825c
jmp 0x5d82b1
cmp dword [ebp - 0xe4], 0
jne 0x5d82f1
push 0x100
lea edx, [ebp - 0x638]
push edx
mov eax, dword [ebp - 0x510]
push eax
call fcn.00514f4e
add esp, 0xc
push eax
push 0x79d820
mov ecx, dword [ebp + 8]
push ecx
call fcn.00518f9a
add esp, 0xc
mov eax, 0x1e
jmp 0x5d89b9
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x500]
push eax
call fcn.00518c2f
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xec], edx
mov ax, word [ebp - 0x528]
mov word [ebp - 0x530], ax
movzx ecx, word [ebp - 0x530]
movzx edx, word [ebp - 0x52c]
cmp ecx, edx
jg 0x5d855a
mov eax, dword [ebp - 0x500]
movzx ecx, word [eax]
cmp ecx, 2
jne 0x5d8378
mov esi, esp
movzx edx, word [ebp - 0x530]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00516fe7
mov ecx, dword [ebp - 0x504]
mov word [ecx + 2], ax
jmp 0x5d8399
mov esi, esp
movzx edx, word [ebp - 0x530]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00516fe7
mov ecx, dword [ebp - 0x508]
mov word [ecx + 2], ax
mov esi, esp
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [ebp - 0x500]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call fcn.00516fe7
test eax, eax
je 0x5d8541
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 0x510], eax
movzx edx, byte [ebp - 0x531]
test edx, edx
je 0x5d84d7
cmp dword [ebp - 0x510], 0x2741
jne 0x5d84d7
push 0x100
lea eax, [ebp - 0x638]
push eax
mov ecx, dword [ebp - 0x510]
push ecx
call fcn.00514f4e
add esp, 0xc
push eax
movzx edx, word [ebp - 0x530]
push edx
push str.bind_port_hu__on_non_local_address_failed:__s_n
mov eax, dword [ebp + 8]
push eax
call fcn.00514800
add esp, 0x10
mov dword [ebp - 0xec], 0x80
mov esi, esp
lea ecx, [ebp - 0xec]
push ecx
mov edx, dword [ebp - 0x500]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x158]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.00516fe7
test eax, eax
je 0x5d84bd
push 0x100
lea ecx, [ebp - 0x638]
push ecx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
push eax
call fcn.00514f4e
add esp, 0xc
push eax
push 0x79d864
mov edx, dword [ebp + 8]
push edx
call fcn.00518f9a
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051233e
add esp, 0xc
mov eax, 0x1e
jmp 0x5d89b9
mov ax, word [ebp - 0x528]
mov word [ebp - 0x530], ax
mov byte [ebp - 0x531], 0
jmp 0x5d8331
cmp dword [ebp - 0x510], 0x2740
je 0x5d853f
cmp dword [ebp - 0x510], 0xd
je 0x5d853f
push 0x100
lea ecx, [ebp - 0x638]
push ecx
mov edx, dword [ebp - 0x510]
push edx
call fcn.00514f4e
add esp, 0xc
push eax
movzx eax, word [ebp - 0x530]
push eax
push str.bind_port_hu__failed:__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.00518f9a
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051233e
add esp, 0xc
mov eax, 0x1e
jmp 0x5d89b9
jmp 0x5d8543
jmp 0x5d855a
mov dx, word [ebp - 0x530]
add dx, 1
mov word [ebp - 0x530], dx
jmp 0x5d8331
movzx eax, word [ebp - 0x530]
movzx ecx, word [ebp - 0x52c]
cmp eax, ecx
jle 0x5d859b
push str.bind___failed__we_ran_out_of_ports_
mov edx, dword [ebp + 8]
push edx
call fcn.00518f9a
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051233e
add esp, 0xc
mov eax, 0x1e
jmp 0x5d89b9
mov dword [ebp - 0xec], 0x80
mov esi, esp
lea eax, [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0x500]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.00516fe7
test eax, eax
je 0x5d861e
push 0x100
lea eax, [ebp - 0x638]
push eax
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
push eax
call fcn.00514f4e
add esp, 0xc
push eax
push str.getsockname___failed:__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.00518f9a
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051233e
add esp, 0xc
mov eax, 0x1e
jmp 0x5d89b9
mov esi, esp
push 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp esi, esp
call fcn.00516fe7
test eax, eax
je 0x5d868b
push 0x100
lea eax, [ebp - 0x638]
push eax
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
push eax
call fcn.00514f4e
add esp, 0xc
push eax
push str.socket_failure:__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.00518f9a
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051233e
add esp, 0xc
mov eax, 0x1e
jmp 0x5d89b9
push 0x2f
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0xe4]
push eax
call fcn.005194d6
add esp, 0xc
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x264]
test edx, edx
jne 0x5d86c6
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x25d]
test ecx, ecx
je 0x5d86c6
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x264], 1
jmp 0x5d86d1
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 2
je 0x5d8967
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x264]
test edx, edx
jne 0x5d86f1
cmp dword [ebp + 0xc], 0
jne 0x5d86f1
jmp 0x5d86c8
cmp dword [ebp + 0xc], 1
jne 0x5d8707
mov eax, dword [ebp - 0x500]
movzx ecx, word [eax]
cmp ecx, 2
je 0x5d8707
jmp 0x5d86c8
mov edx, dword [ebp - 0x500]
movzx eax, word [edx]
mov dword [ebp - 0x6bc], eax
cmp dword [ebp - 0x6bc], 2
je 0x5d872a
cmp dword [ebp - 0x6bc], 0x17
je 0x5d874d
jmp 0x5d8770
mov esi, esp
mov ecx, dword [ebp - 0x504]
movzx edx, word [ecx + 2]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, esp
call fcn.00516fe7
mov word [ebp - 0x530], ax
jmp 0x5d8775
mov esi, esp
mov eax, dword [ebp - 0x508]
movzx ecx, word [eax + 2]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, esp
call fcn.00516fe7
mov word [ebp - 0x530], ax
jmp 0x5d8775
jmp 0x5d86c8
cmp dword [ebp + 0xc], 0
jne 0x5d8836
mov edx, dword [ebp - 0x500]
movzx eax, word [edx]
cmp eax, 2
jne 0x5d8799
mov dword [ebp - 0x6c0], 1
jmp 0x5d87a3
mov dword [ebp - 0x6c0], 2
movzx ecx, word [ebp - 0x530]
push ecx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x6c0]
push eax
imul ecx, dword [ebp + 0xc], 5
add ecx, str.EPRT
push ecx
push str._s__d_s_hu
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00516740
add esp, 0x1c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5d8831
mov ecx, dword [ebp - 8]
push ecx
call fcn.00519d32
add esp, 4
push eax
push str.Failure_sending_EPRT_command:__s
mov edx, dword [ebp + 8]
push edx
call fcn.00518f9a
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051233e
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x78], 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.005d3fa0
add esp, 8
mov eax, dword [ebp - 8]
jmp 0x5d89b9
jmp 0x5d8967
cmp dword [ebp + 0xc], 1
jne 0x5d8962
lea edx, [ebp - 0x50]
mov dword [ebp - 0x6a8], edx
lea eax, [ebp - 0x6a0]
mov dword [ebp - 0x6ac], eax
cmp dword [ebp - 0x6a8], 0
je 0x5d88b4
mov ecx, dword [ebp - 0x6a8]
movsx edx, byte [ecx]
test edx, edx
je 0x5d88b4
mov eax, dword [ebp - 0x6a8]
movsx ecx, byte [eax]
cmp ecx, 0x2e
jne 0x5d8884
mov edx, dword [ebp - 0x6ac]
mov byte [edx], 0x2c
jmp 0x5d8894
mov eax, dword [ebp - 0x6ac]
mov ecx, dword [ebp - 0x6a8]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x6ac]
add eax, 1
mov dword [ebp - 0x6ac], eax
mov ecx, dword [ebp - 0x6a8]
add ecx, 1
mov dword [ebp - 0x6a8], ecx
jmp 0x5d8855
mov edx, dword [ebp - 0x6ac]
mov byte [edx], 0
movzx eax, word [ebp - 0x530]
and eax, 0xff
push eax
movzx ecx, word [ebp - 0x530]
sar ecx, 8
push ecx
push str.__d__d
push 0x14
mov edx, dword [ebp - 0x6ac]
push edx
call fcn.00517cda
add esp, 0x14
lea eax, [ebp - 0x6a0]
push eax
imul ecx, dword [ebp + 0xc], 5
add ecx, str.EPRT
push ecx
push 0x79d92c
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00516740
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5d8960
mov ecx, dword [ebp - 8]
push ecx
call fcn.00519d32
add esp, 4
push eax
push str.Failure_sending_PORT_command:__s
mov edx, dword [ebp + 8]
push edx
call fcn.00518f9a
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051233e
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.005d3fa0
add esp, 8
mov eax, dword [ebp - 8]
jmp 0x5d89b9
jmp 0x5d8967
jmp 0x5d86c8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x78], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005d6f60
add esp, 8
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx + 0x158], ecx
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0xc]
mov byte [eax + edx + 0x24c], 1
push 0x1c
mov ecx, dword [ebp + 8]
push ecx
call fcn.005d3fa0
add esp, 8
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x5d89e8]
call fcn.005163b2
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005150f7
add esp, 0x6c0
cmp ebp, esp
call fcn.00516fe7
mov esp, ebp
pop ebp
ret