Function at 0x4ed390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x631ebc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xec]
cmp eax, dword [ecx + 8]
jbe 0x4edf4d
sub esp, 0x16c
mov eax, 0
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov byte [esp + 0x2f], 0
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], 0
mov dword [esp + 0x18c], 0
mov ecx, dword [esp + 0x178]
test ecx, ecx
je 0x4ed600
cmp ecx, 1
je 0x4ed409
xor eax, eax
xor edx, edx
xor ebx, ebx
jmp 0x4ed698
lea eax, [0x527e5b]
mov dword [esp], eax
mov dword [esp + 4], 3
mov eax, dword [esp + 0x170]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x174]
mov dword [esp + 0xc], ecx
call sym.net.Listen
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x4ed5d8
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
test byte [ebx], al
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
lea ebx, [sym.github.com_RUB_NDS_Terrapin_Scanner_tscanner.ScanWithTimeout.func6]
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd8], eax
lea edx, [esp + 0xd0]
mov dword [esp + 0x168], edx
mov byte [esp + 0x2f], 1
movzx edx, byte [esp + 0x17c]
test dl, dl
je 0x4ed573
mov dword [esp + 0x84], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
lea eax, [0x50b280]
mov dword [esp + 0xdc], eax
lea ecx, [0x5584b8]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x170]
mov dword [esp], ecx
mov ecx, dword [esp + 0x174]
mov dword [esp + 4], ecx
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x50b280]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], eax
mov eax, dword [0x60cc14]
lea ecx, [0x558974]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0xdc]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call sym.fmt.Fprintln
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4ed5a0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
mov ebx, ecx
mov ecx, dword [esp + 0x178]
mov eax, 1
jmp 0x4ed698
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], ecx
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x168]
mov eax, dword [edx]
call eax
add esp, 0x16c
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], ecx
add esp, 0x16c
ret
lea edi, [esp + 0x118]
xor eax, eax
call fcn.004663dd
mov eax, dword [esp + 0x180]
mov ecx, eax
sar ecx, 0x1f
mov edx, 0x3b9aca00
mul edx
mov dword [esp + 0x118], eax
imul ecx, ecx, 0x3b9aca00
add ecx, edx
mov dword [esp + 0x11c], ecx
lea ecx, [esp + 0x118]
mov dword [esp], ecx
lea ecx, [0x558ecc]
mov dword [esp + 4], ecx
lea ecx, [0x631d80]
mov dword [esp + 8], ecx
lea ecx, [0x527e5b]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 3
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x174]
mov dword [esp + 0x18], ecx
call sym.net._Dialer_.DialContext
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x4edab7
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x58], edx
test byte [edx], al
or eax, 2
mov byte [esp + 0x2e], al
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
lea ecx, [sym.github.com_RUB_NDS_Terrapin_Scanner_tscanner.ScanWithTimeout.func7]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ebx
lea ecx, [esp + 0xc4]
mov dword [esp + 0x164], ecx
mov byte [esp + 0x2f], al
lea ecx, [0x50f200]
mov dword [esp], ecx
mov dword [esp + 4], edx
call sym.runtime.convI2I
mov eax, dword [esp + 8]
nop
lea ecx, [0x558aa0]
cmp eax, ecx
jne 0x4ed724
mov ecx, dword [esp + 0x88]
jmp 0x4ed729
mov ecx, 0
mov dword [esp + 0x90], eax
jne 0x4ed73f
cmp dword [ecx + 4], 0x1000
jge 0x4ed828
lea eax, [0x51d140]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
lea ecx, [0x50b5c0]
mov dword [esp], ecx
mov dword [esp + 4], 0x1000
mov dword [esp + 8], 0x1000
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
lea edi, [esp + 0xec]
xor eax, eax
call fcn.004663e5
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], 0x1000
mov dword [esp + 0xf4], 0x1000
mov eax, dword [esp + 0x90]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x110], 0xffffffff
mov dword [esp + 0x114], 0xffffffff
mov ecx, dword [0x631fe0]
test ecx, ecx
je 0x4ed814
lea eax, [0x51d140]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
lea ecx, [esp + 0xec]
mov dword [esp + 8], ecx
call sym.runtime.wbMove
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x60]
lea esi, [esp + 0xec]
call fcn.00466892
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x60], ecx
lea eax, [0x50f1a0]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
call sym.runtime.convI2I
mov eax, dword [esp + 8]
lea ecx, [0x558ab4]
cmp eax, ecx
jne 0x4ed859
mov ecx, dword [esp + 0x88]
jmp 0x4ed85e
mov ecx, 0
mov dword [esp + 0x90], eax
jne 0x4ed877
cmp dword [ecx + 0xc], 0x1000
jl 0x4ed877
mov eax, ecx
jmp 0x4ed912
lea eax, [0x50b5c0]
mov dword [esp], eax
mov dword [esp + 4], 0x1000
mov dword [esp + 8], 0x1000
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
lea ecx, [0x5190e0]
mov dword [esp], ecx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 0xc], 0x1000
mov dword [eax + 0x10], 0x1000
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4ed8d3
mov ecx, dword [esp + 0x8c]
jmp 0x4ed8e1
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x8c]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 0x18], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4ed901
mov ecx, dword [esp + 0x88]
jmp 0x4ed90f
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x88]
mov dword [edi], ecx
mov dword [eax + 0x1c], ecx
mov dword [esp + 0x5c], eax
lea ecx, [0x523560]
mov dword [esp], ecx
call sym.runtime.newobject
mov eax, dword [0x631fe0]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x4ed93c
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
jmp 0x4ed94e
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x60]
mov dword [edi], eax
mov edx, dword [esp + 0x5c]
mov dword [edi + 4], edx
mov dword [esp + 0x64], ecx
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [esp], ecx
call sym.github.com_RUB_NDS_Terrapin_Scanner_tscanner.exchangeBanners
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
je 0x4ed9d3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], ecx
movzx eax, byte [esp + 0x2e]
test al, 2
je 0x4ed9b5
and eax, 0xfffffffd
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0x164]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x2e]
test al, 1
je 0x4ed9cc
and eax, 0xfffffffe
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0x168]
mov eax, dword [edx]
call eax
add esp, 0x16c
ret
mov dword [esp + 0x80], ecx
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call sym.github.com_RUB_NDS_Terrapin_Scanner_tscanner.receiveRemoteKexInit
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x4eda53
mov dword [esp + 0x7c], ecx
lea eax, [0x518860]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4eda26
mov ecx, dword [esp + 0x80]
jmp 0x4eda34
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x80]
mov dword [edi], ecx
mov dword [esp + 0x78], eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x74], edx
mov ebx, dword [ecx + 0x2c]
mov dword [esp + 0x48], ebx
xor ebp, ebp
jmp 0x4edae0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], ecx
movzx eax, byte [esp + 0x2e]
test al, 2
je 0x4eda99
and eax, 0xfffffffd
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0x164]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x2e]
test al, 1
je 0x4edab0
and eax, 0xfffffffe
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0x168]
mov eax, dword [edx]
call eax
add esp, 0x16c
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], ecx
add esp, 0x16c
ret
inc ebp
cmp ebp, ebx
jge 0x4edb3a
lea esi, [edx + ebp*8]
cmp dword [esi + 4], 0x1d
jne 0x4edadf
mov dword [esp + 0x38], ebp
mov eax, dword [esi]
lea ecx, [0x52f86c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1d
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4edb2c
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x38]
jmp 0x4edadf
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x38]
jmp 0x4edb3f
mov edx, 0xffffffff
test edx, edx
jge 0x4edb58
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x70], edx
mov ebx, dword [ecx + 0x38]
mov dword [esp + 0x44], ebx
xor ebp, ebp
jmp 0x4eded8
mov edx, 1
mov byte [eax + 8], dl
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
lea edx, [sym.github.com_RUB_NDS_Terrapin_Scanner_tscanner.ScanWithTimeout.ScanWithTimeout.func1.func2]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xc0], 4
lea edx, [0x527fbb]
mov dword [esp + 0xbc], edx
mov ebx, dword [ecx + 0x28]
mov ebp, dword [ecx + 0x2c]
mov esi, dword [ecx + 0x30]
lea edi, [0x5588d8]
mov dword [esp], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
lea ebx, [esp + 0xb8]
mov dword [esp + 0x10], ebx
call sym.golang.org_x_exp_slices.ContainsFunc_go.shape.__string_go.shape.string_
movzx eax, byte [esp + 0x14]
test al, al
jne 0x4edbe1
xor eax, eax
jmp 0x4edc5e
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
lea eax, [sym.github.com_RUB_NDS_Terrapin_Scanner_tscanner.ScanWithTimeout.ScanWithTimeout.func1.func3]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb4], 0x10
lea eax, [0x52a5d6]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x40]
mov ebx, dword [ecx + 0x44]
mov ebp, dword [ecx + 0x48]
lea esi, [0x5588d8]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
lea edx, [esp + 0xac]
mov dword [esp + 0x10], edx
call sym.golang.org_x_exp_slices.ContainsFunc_go.shape.__string_go.shape.string_
movzx eax, byte [esp + 0x14]
test al, al
je 0x4edc6c
mov eax, 1
jmp 0x4edd6e
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
lea eax, [sym.github.com_RUB_NDS_Terrapin_Scanner_tscanner.ScanWithTimeout.ScanWithTimeout.func1.func4]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], 4
lea eax, [0x527fbb]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x38]
mov ebx, dword [eax + 0x3c]
lea ebp, [0x5588d8]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x10], ecx
call sym.golang.org_x_exp_slices.ContainsFunc_go.shape.__string_go.shape.string_
movzx eax, byte [esp + 0x14]
test al, al
jne 0x4edcf1
xor eax, eax
jmp 0x4edd6e
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
lea eax, [sym.github.com_RUB_NDS_Terrapin_Scanner_tscanner.ScanWithTimeout.ScanWithTimeout.func1.func5]
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], 0x10
lea eax, [0x52a5d6]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
mov ebx, dword [eax + 0x54]
lea ebp, [0x5588d8]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x94]
mov dword [esp + 0x10], ecx
call sym.golang.org_x_exp_slices.ContainsFunc_go.shape.__string_go.shape.string_
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov byte [ecx + 9], al
mov eax, dword [esp + 0x7c]
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x6c], ebx
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x40], ebp
xor edx, edx
jmp 0x4edd8c
inc edx
cmp edx, ebp
jge 0x4edde6
lea esi, [ebx + edx*8]
cmp dword [esi + 4], 0x1c
jne 0x4edd8b
mov dword [esp + 0x30], edx
mov eax, dword [esi]
lea ecx, [0x52f2d5]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1c
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4eddd8
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x40]
jmp 0x4edd8b
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x30]
jmp 0x4eddeb
mov edx, 0xffffffff
test edx, edx
setge bl
mov byte [ecx + 0xa], bl
mov ebx, dword [esp + 0x178]
cmp ebx, 1
jne 0x4ede11
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x68], ebx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x3c], eax
xor edx, edx
jmp 0x4ede72
mov dword [esp + 0x184], ecx
mov dword [esp + 0x188], 0
mov dword [esp + 0x18c], 0
movzx eax, byte [esp + 0x2e]
test al, 2
je 0x4ede53
and eax, 0xfffffffd
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0x164]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x2e]
test al, 1
je 0x4ede6a
and eax, 0xfffffffe
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0x168]
mov eax, dword [edx]
call eax
add esp, 0x16c
ret
inc edx
cmp edx, eax
jge 0x4edec5
lea ebp, [ebx + edx*8]
cmp dword [ebp + 4], 0x1c
jne 0x4ede71
mov dword [esp + 0x54], edx
mov eax, dword [ebp]
lea ecx, [0x52f2f1]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1c
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4edebb
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x68]
jmp 0x4ede71
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x54]
jmp 0x4edeca
mov eax, 0xffffffff
test eax, eax
setge al
mov byte [ecx + 0xa], al
jmp 0x4ede11
inc ebp
cmp ebp, ebx
jge 0x4edf32
lea esi, [edx + ebp*8]
cmp dword [esi + 4], 0x1d
jne 0x4eded7
mov dword [esp + 0x34], ebp
mov eax, dword [esi]
lea ecx, [0x52f86c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1d
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4edf24
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
jmp 0x4eded7
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x34]
jmp 0x4edf37
mov edx, 0xffffffff
test edx, edx
setge dl
jmp 0x4edb5d
call sym.runtime.morestack_noctxt
jmp sym.github.com_RUB_NDS_Terrapin_Scanner_tscanner.ScanWithTimeout